execute if entity @s[tag=basic_mage_hat] run function items_py:mshop/buy/armor/all/basic_mage_hat
execute if entity @s[tag=life_chestplate] run function items_py:mshop/buy/armor/all/life_chestplate
execute if entity @s[tag=heavy_leggings] run function items_py:mshop/buy/armor/all/heavy_leggings
execute if entity @s[tag=time_shoes] run function items_py:mshop/buy/armor/all/time_shoes
tag @s remove b