execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:diamond_helmet",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:diamond_chestplate",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:diamond_leggings",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:diamond_boots",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:iron_helmet",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:iron_chestplate",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:iron_leggings",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{id:"minecraft:iron_boots",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt={Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/addarmor
tag @s add SetMiddleItem
execute as @e[distance=..11,type=item,limit=1,sort=nearest,tag=SetMiddleItem,nbt=!{Item:{tag:{ironarmorkyu:1b}}},nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] run function zzzzdonotuse:modifyarmor/checkitemtypes
tag @s add SetMiddleItem