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

scoreboard players remove mcoins shop 6
