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 run execute at @e[distance=..5,nbt={Item:{id:"minecraft:iron_ingot",Count:1b}}] run scoreboard players add @s KnockArmorStuff 1
#execute as @s run execute at @e[distance=..5,nbt={Item:{id:"minecraft:iron_block",Count:1b}}] run scoreboard players add @s KnockArmorStuff 9
#scoreboard players add @s[tag=PlusQuarterArmor] KnockArmorStuff 25
#execute as @s[nbt={Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/setironarmor
execute as @s[scores={KnockArmorStuff=-100,KyuDummy=1699}] run data modify entity @s Item.tag.AttributeModifiers append value {AttributeName:"generic.knockback_resistance",Name:"generic.knockback_resistance",Amount:.25,Slot:"feet",Operation:0,UUID:[I;6969,6969,6968,1143]}

scoreboard players set @s[scores={KyuDummy=1699}] KnockArmorStuff 25
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