execute as @s run function zzzzdonotuse:modifyarmor/checkarmortoughnessstatslot
scoreboard players set @s ArmorToughStuff 0
execute store result score @s[tag=FoundArmorToughnessTag0] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[0].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag1] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[1].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag2] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[2].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag3] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[3].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag4] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[4].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag5] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[5].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag6] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[6].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag7] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[7].Amount 100
execute store result score @s[tag=FoundArmorToughnessTag8] ArmorToughStuff run data get entity @s Item.tag.AttributeModifiers[8].Amount 100
#execute as @s run execute at @e[distance=..5,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}] run scoreboard players add @s ArmorToughStuff 1
#execute as @s run execute at @e[distance=..5,nbt={Item:{id:"minecraft:iron_block",Count:1b}}] run scoreboard players add @s ArmorToughStuff 9
execute as @s[nbt={Item:{tag:{diamondnetherarmorkyu:1b}}}] run execute at @e[distance=..5,nbt={Item:{id:"minecraft:diamond",Count:1b}},tag=!SaveMe] run function zzzzdonotuse:modifyarmor/addarmortoughness2