execute if entity @s[tag=holy_sword] run function items_py:mshop/buy/weapon/all/holy_sword
execute if entity @s[tag=ice_sword] run function items_py:mshop/buy/weapon/all/ice_sword
execute if entity @s[tag=emerald_sword] run function items_py:mshop/buy/weapon/all/emerald_sword
execute if entity @s[tag=dark_mace] run function items_py:mshop/buy/weapon/all/dark_mace
tag @s remove a