scoreboard players set @s casino.slot_machine.process 0
scoreboard players reset @s casino.slot_machine.rollsdone
execute at @s run playsound minecraft:block.wooden_button.click_off block @a ~ ~ ~ 1
execute at @s run item replace entity @n[type=minecraft:item_display] container.0 with minecraft:stone[minecraft:custom_model_data=1018]
execute on passengers store result entity @s data.amount int 1 run function ws:misc/casino/slot_machine.calculate_prize
function ws:misc/casino/slot_machine.give_chips with entity @s Passengers[].data
execute on passengers run data remove entity @s data.prize
execute on passengers run data remove entity @s data.player