#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 run execute at @s run execute if entity @e[distance=..5,nbt={Item:{id:"minecraft:diamond",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/addarmortoughness
#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 as @s[nbt={Item:{id:"minecraft:diamond_helmet"}}] Item.tag merge value {diamondarmorkyu:1b}
#execute as @s[nbt={Item:{id:"minecraft:diamond_chestplate"}}] Item.tag merge value {diamondarmorkyu:1b}
#execute as @s[nbt={Item:{id:"minecraft:diamond_leggings"}}] Item.tag merge value {diamondarmorkyu:1b}

#execute as @s[nbt={Item:{id:"minecraft:netherite_helmet"}}] Item.tag merge value {diamondnetherarmorkyu:1b}
#execute as @s[nbt={Item:{id:"minecraft:netherite_chestplate"}}] Item.tag merge value {diamondnetherarmorkyu:1b}
#execute as @s[nbt={Item:{id:"minecraft:netherite_leggings"}}] Item.tag merge value {diamondnetherarmorkyu:1b}
execute as @s[nbt={Item:{id:"minecraft:diamond_helmet"}}] run function zzzzdonotuse:modifyarmor/checkhelmetbonus
execute as @s[nbt={Item:{id:"minecraft:netherite_helmet"}}] run function zzzzdonotuse:modifyarmor/checkhelmetbonus

execute as @s[nbt={Item:{id:"minecraft:diamond_chestplate"}}] run function zzzzdonotuse:modifyarmor/checkchestbonus
execute as @s[nbt={Item:{id:"minecraft:netherite_chestplate"}}] run function zzzzdonotuse:modifyarmor/checkchestbonus

execute as @s[nbt={Item:{id:"minecraft:diamond_leggings"}}] run function zzzzdonotuse:modifyarmor/checklegsbonus
execute as @s[nbt={Item:{id:"minecraft:netherite_leggings"}}] run function zzzzdonotuse:modifyarmor/checklegsbonus

execute as @s[nbt={Item:{id:"minecraft:diamond_boots"}}] run function zzzzdonotuse:modifyarmor/checkbootsbonus
execute as @s[nbt={Item:{id:"minecraft:netherite_boots"}}] run function zzzzdonotuse:modifyarmor/checkbootsbonus