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

scoreboard players remove mcoins shop 13
