$setblock $(button) air
$scoreboard players remove @s gold $(gold)

function main:game/wave/shop/items/prices
$execute at @e[type=item,tag=artifact,$(pos),dx=0] run kill @n[type=text_display,tag=price]

$execute as @e[type=item,tag=artifact,$(pos),dx=0] run tp @s $(xyz_bought)
$summon firework_rocket $(xyz_bought) {Life:0,LifeTime:0,FireworksItem:{id:"firework_rocket",count:1,components:{fireworks:{explosions:[{shape:"star",has_trail:0b,colors:[I;16776960],fade_colors:[I;16776960]}]}}}}

function main:dialog/text/text {"name":"Storekeeper","name_color":"green","text":"Nice choice.","text_color":"white","duration":80}