execute if items entity @s armor.head #minecraft:wool run tag @s add wool_on_head

item replace entity @s[tag=!wool_on_head] armor.head with leather_helmet[item_name={"color":"gray","italic":false,"text":"Leather Cap"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
item replace entity @s armor.chest with leather_chestplate[item_name={"color":"gray","italic":false,"text":"Leather Tunic"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
execute if score @s armor_lvl matches 0 run item replace entity @s armor.legs with leather_leggings[item_name={"color":"gray","italic":false,"text":"Leather Pants"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
execute if score @s armor_lvl matches 0 run item replace entity @s armor.feet with leather_boots[item_name={"color":"gray","italic":false,"text":"Leather Sandals"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1

execute if score @s armor_lvl matches 1 run item replace entity @s armor.legs with chainmail_leggings[item_name={"color":"gray","italic":false,"text":"Chainmail Leggings"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
execute if score @s armor_lvl matches 1 run item replace entity @s armor.feet with chainmail_boots[item_name={"color":"gray","italic":false,"text":"Chainmail Boots"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1

execute if score @s armor_lvl matches 2 run item replace entity @s armor.legs with iron_leggings[item_name={"color":"gray","italic":false,"text":"Iron Leggings"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
execute if score @s armor_lvl matches 2 run item replace entity @s armor.feet with iron_boots[item_name={"color":"gray","italic":false,"text":"Iron Flip Flops"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1

execute if score @s armor_lvl matches 3 run item replace entity @s armor.legs with diamond_leggings[item_name={"color":"gray","italic":false,"text":"Diamond Leggings"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
execute if score @s armor_lvl matches 3 run item replace entity @s armor.feet with diamond_boots[item_name={"color":"gray","italic":false,"text":"Diamond Boots"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1

execute if score @s armor_lvl matches 4 run item replace entity @s armor.legs with netherite_leggings[item_name={"color":"gray","italic":false,"text":"Netherite Leggings"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1
execute if score @s armor_lvl matches 4 run item replace entity @s armor.feet with netherite_boots[item_name={"color":"gray","italic":false,"text":"Netherite Heels"},trim={material:"minecraft:lapis",pattern:"minecraft:bolt"},unbreakable={},tooltip_display={hidden_components:["dyed_color","attribute_modifiers","can_place_on","trim","unbreakable"]},dyed_color=28625] 1

function pctf:logic/player/armor/enchant