execute as @s[nbt={Item:{id:"minecraft:diamond_helmet",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:diamond_chestplate",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:diamond_leggings",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:diamond_boots",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:netherite_helmet",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:netherite_chestplate",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:netherite_leggings",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:netherite_boots",Count:1b}}] run function zzzzdonotuse:modifyarmor/checkifmodified

execute as @s[nbt={Item:{id:"minecraft:iron_helmet",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:iron_chestplate",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:iron_leggings",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{id:"minecraft:iron_boots",Count:1b}},nbt=!{Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/checkifmodified
execute as @s[nbt={Item:{tag:{ironarmorkyu:1b}}}] run function zzzzdonotuse:modifyarmor/addarmor
tag @s add SetMiddleItem

execute as @s[nbt={Item:{tag:{diamondnetherarmorkyu:1b}}},nbt=!{Item:{id:"minecraft:structure_void",Count:2b}}] run function zzzzdonotuse:modifyarmor/checkitemtypes
execute as @s[nbt={Item:{id:"minecraft:paper",Count:1b,tag:{HideFlags:1,Enchantments:[{}]}}},nbt=!{Item:{tag:{kyusheet:1b}}}] run function zzzzdonotuse:modifyarmor/spells/checkspellupgradecrafting
tag @s add SetMiddleItem
