$execute if score @s gold matches ..$(gold_less) unless score .shop_wait arena matches 1.. run return run function main:game/wave/shop/items/no_gold

$execute as @s[scores={gold=$(gold)..}] run function main:game/wave/shop/items/give_1 {"gold":$(gold),"button":"$(button)","pos":"$(pos)","xyz_bought":"$(xyz_bought)"}
