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

scoreboard players remove mcoins shop 3
