#execute as @s run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}] run function zzzzdonotuse:modifyarmor/addarmor
#execute as @s run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:iron_block",Count:1b}}] run function zzzzdonotuse:modifyarmor/addarmor
#execute at @s run kill @e[type=item,distance=..5,nbt={Item:{id:"minecraft:iron_block",Count:1b}}]
#execute at @s run kill @e[type=item,distance=..5,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}]
#execute as @s[nbt={Item:{tag:{netherarmorkyu:1b}}},nbt={Item:{tag:{maxtoughness:1b}}},nbt=!{Item:{tag:{gotnetheritebonus:1b}}}] run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:netherite_ingot",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/netheritebonus
#execute at @s run kill @e[type=item,distance=..5,nbt={Item:{id:"minecraft:diamond",Count:1b}},tag=!SaveMe]


execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:diamond_sword",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/givechestbonus


