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

scoreboard players remove mcoins shop 24
