function items_py:shop/buy
scoreboard players operation coins shop -= @s shop

# Sound
playsound custom.shop.buy ambient @a[distance=..4] ~ ~ ~

# Particles
particle cloud ~ ~.5 ~ .3 .3 .3 0 10 force
particle cloud ~ ~.5 ~ 0 0 0 0.1 5 force

function olink:ch1/find_linked
execute if entity @s[tag=!restock] run tp @e[tag=ch1_olinked,sort=nearest,limit=4] ~ -5 ~
execute if entity @s[tag=!restock] at @s run kill @e[tag=ch1_olinked,sort=nearest,limit=4]

execute if entity @s[tag=restock] run function game:room/6_room_completed/shop/restock
