######Finds which array element of attribute modifiers contains the generic.armor tag
data merge entity @s {Tags:[]}
tag @s add a
tag @s add b
tag @s add c
tag @s add d
tag @s add e
tag @s add f
tag @s add g
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[0].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag0
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[1].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag1
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[2].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag2
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[3].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag3
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[4].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag4
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[5].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag5
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[6].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag6
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[7].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag7
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag
data modify entity @s[tag=!FoundKnockTag] Tags[0] set from entity @s[tag=!FoundKnockTag] Item.tag.AttributeModifiers[8].Name
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag8
tag @s[tag=!FoundKnockTag,tag=generic.knockback_resistance] add FoundKnockTag