execute store result score #tmp shop run clear @s slime_ball{coin:1b,type:"copper"}
scoreboard players operation coins shop += #tmp shop
scoreboard players operation #accumulated_coins stats_calc += #tmp shop

execute store result score #tmp shop run clear @s slime_ball{coin:1b,type:"silver"}
scoreboard players set #tmp2 shop 5
scoreboard players operation #tmp shop *= #tmp2 shop
scoreboard players operation coins shop += #tmp shop
scoreboard players operation #accumulated_coins stats_calc += #tmp shop

execute store result score #tmp shop run clear @s slime_ball{coin:1b,type:"gold"}
scoreboard players set #tmp2 shop 10
scoreboard players operation #tmp shop *= #tmp2 shop
scoreboard players operation coins shop += #tmp shop
scoreboard players operation #accumulated_coins stats_calc += #tmp shop

playsound custom.coin.pickup ambient @s ~ ~ ~ .4
