execute store result score #tmp shop run clear @s slime_ball{mcoin:1b}
scoreboard players operation mcoins shop += #tmp shop
scoreboard players operation #accumulated_emeralds stats_calc += #tmp shop

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