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

scoreboard players remove mcoins shop 20
