execute as @s run function zzzzdonotuse:modifyarmor/checkknockbackresiststatslot
scoreboard players set @s KnockArmorStuff -100
execute store result score @s[tag=FoundKnockTag0] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[0].Amount 100
execute store result score @s[tag=FoundKnockTag1] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[1].Amount 100
execute store result score @s[tag=FoundKnockTag2] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[2].Amount 100
execute store result score @s[tag=FoundKnockTag3] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[3].Amount 100
execute store result score @s[tag=FoundKnockTag4] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[4].Amount 100
execute store result score @s[tag=FoundKnockTag5] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[5].Amount 100
execute store result score @s[tag=FoundKnockTag6] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[6].Amount 100
execute store result score @s[tag=FoundKnockTag7] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[7].Amount 100
execute store result score @s[tag=FoundKnockTag8] KnockArmorStuff run data get entity @s Item.tag.AttributeModifiers[8].Amount 100
execute as @s[nbt={Item:{id:"minecraft:netherite_helmet"}},scores={KnockArmorStuff=..1}] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:.1,Slot:"head",Operation:0,UUID:[I;6969,6969,6968,1146]}
execute as @s[nbt={Item:{id:"minecraft:netherite_chestplate"}},scores={KnockArmorStuff=..1}] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:.1,Slot:"chest",Operation:0,UUID:[I;6969,6969,6968,1147]}
execute as @s[nbt={Item:{id:"minecraft:netherite_leggings"}},scores={KnockArmorStuff=..1}] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:.1,Slot:"legs",Operation:0,UUID:[I;6969,6969,6968,1148]}
execute as @s[nbt={Item:{id:"minecraft:netherite_boots"}},scores={KnockArmorStuff=..1}] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:.1,Slot:"feet",Operation:0,UUID:[I;6969,6969,6968,1149]}


scoreboard players set @s[scores={KnockArmorStuff=..9}] KnockArmorStuff 10
execute store result entity @s[tag=FoundKnockTag0] Item.tag.AttributeModifiers[0].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag0,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag1] Item.tag.AttributeModifiers[1].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag1,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag2] Item.tag.AttributeModifiers[2].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag2,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag3] Item.tag.AttributeModifiers[3].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag3,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag4] Item.tag.AttributeModifiers[4].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag4,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag5] Item.tag.AttributeModifiers[5].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag5,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag6] Item.tag.AttributeModifiers[6].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag6,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag7] Item.tag.AttributeModifiers[7].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag7,scores={KnockArmorStuff=1..}] KnockArmorStuff
execute store result entity @s[tag=FoundKnockTag8] Item.tag.AttributeModifiers[8].Amount double 0.01 run scoreboard players get @s[tag=FoundKnockTag8,scores={KnockArmorStuff=1..}] KnockArmorStuff




execute as @s run function zzzzdonotuse:modifyarmor/checkarmortoughnessstatslot
scoreboard players set @s ArmorToughStuff -100
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
scoreboard players set @s[scores={ArmorToughStuff=..299},nbt={Item:{tag:{netherarmorkyu:1b}}}] ArmorToughStuff 300
execute store result entity @s[tag=FoundArmorToughnessTag0] Item.tag.AttributeModifiers[0].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag0,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag1] Item.tag.AttributeModifiers[1].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag1,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag2] Item.tag.AttributeModifiers[2].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag2,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag3] Item.tag.AttributeModifiers[3].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag3,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag4] Item.tag.AttributeModifiers[4].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag4,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag5] Item.tag.AttributeModifiers[5].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag5,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag6] Item.tag.AttributeModifiers[6].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag6,scores={ArmorToughStuff=1..}] ArmorToughStuff
execute store result entity @s[tag=FoundArmorToughnessTag7] Item.tag.AttributeModifiers[7].Amount double 0.01 run scoreboard players get @s[tag=FoundArmorToughnessTag7,scores={ArmorToughStuff=1..}] ArmorToughStuff
data modify entity @s Item.tag merge value {fixednetherkyu:1b}