execute on target unless score @s casino.chips matches 20.. run return run function ws:misc/casino/slot_machine.fail with entity @s
execute on target run scoreboard players remove @s casino.chips 20
execute on target run scoreboard players add @s prokrutilruletku 1
scoreboard players set @s casino.slot_machine.process 1
execute at @s run item replace entity @n[type=minecraft:item_display] container.0 with minecraft:stone[minecraft:custom_model_data=1019]
execute at @s run playsound minecraft:block.wooden_button.click_on block @a ~ ~ ~ 1
execute on passengers at @s run data modify entity @s data.player set from entity @n[type=interaction,tag=casino.play] interaction.player
data remove entity @s interaction
execute store result score @s casino.slot_machine.rollsforslot1 run random value 2..6
execute store result score @s casino.slot_machine.rollsforslot2 run random value 2..6
execute store result score @s casino.slot_machine.rollsforslot3 run random value 2..6
scoreboard players operation @s casino.slot_machine.rollsforslot2 += @s casino.slot_machine.rollsforslot1
scoreboard players operation @s casino.slot_machine.rollsforslot3 += @s casino.slot_machine.rollsforslot2