execute unless score @s pay matches 100.. run return run function ws:store/casino/fail {msg:'nomoney'}
scoreboard players remove @s pay 100
scoreboard players add @s casino.chips 100
tellraw @s [{"translate":"casino.boughtchips","bold":true},{"color":"dark_red","score":{"name":"*","objective":"casino.chips"}}]
execute at @s run playsound minecraft:entity.arrow.hit_player player @s
execute unless entity @s[nbt={Inventory:[{components:{"minecraft:custom_data":{chip:1}}}]}] run give @s stone[max_stack_size=1,minecraft:custom_model_data=1017,minecraft:custom_data={chip:1},lore=['{"translate":"casino.chip.showsbalance","bold":true}'],minecraft:item_name='{"translate":"casino.chip"}']