# head
execute if score @s armor_enchant_lvl matches 1.. run item modify entity @s[tag=!wool_on_head] armor.head pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 2.. run item modify entity @s[tag=!wool_on_head] armor.head pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 3.. run item modify entity @s[tag=!wool_on_head] armor.head pctf:enchant_protection

# chest
execute if score @s armor_enchant_lvl matches 1.. run item modify entity @s armor.chest pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 2.. run item modify entity @s armor.chest pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 3.. run item modify entity @s armor.chest pctf:enchant_protection

# legs
execute if score @s armor_enchant_lvl matches 1.. run item modify entity @s armor.legs pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 2.. run item modify entity @s armor.legs pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 3.. run item modify entity @s armor.legs pctf:enchant_protection

# feet
execute if score @s armor_enchant_lvl matches 1.. run item modify entity @s armor.feet pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 2.. run item modify entity @s armor.feet pctf:enchant_protection
execute if score @s armor_enchant_lvl matches 3.. run item modify entity @s armor.feet pctf:enchant_protection

tag @s remove wool_on_head