function items_py:holder/armor/b/times_appeared/count_shop_active
scoreboard players operation basic_mage_hat times_appeared = min times_appeared
scoreboard players set #basic_mage_hat shop 1
tag @s remove basic_mage_hat

scoreboard players remove mcoins shop 10
