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

scoreboard players remove mcoins shop 8
