$execute as @s[scores={gold=$(gold)}] run function main:game/wave/shop/items/no_gold
$execute as @s[scores={gold=$(gold)..}] run give @a firework_star[custom_name='{"color":"$(text_color)","italic":false,"text":"$(name)"}',lore=['{"bold":false,"color":"white","italic":false,"text":"$(description)"}'],hide_additional_tooltip={},custom_data={firework_star:$(id)},potion_contents={custom_color:$(firework_star_color)}] 1
$execute as @s[scores={gold=$(gold)..}] run scoreboard players remove @s gold $(gold)
$execute as @s[scores={gold=$(gold)..}] run playsound minecraft:entity.villager.yes master @s ~ ~ ~ 2 1