scoreboard players add @s casino.slot_machine.rollsdone 1
execute if score @s casino.slot_machine.rollsdone <= @s casino.slot_machine.rollsforslot1 at @s run loot replace entity @n[type=minecraft:item_display,tag=slot.1] container.0 loot ws:casino/slot_machine
execute if score @s casino.slot_machine.rollsdone <= @s casino.slot_machine.rollsforslot2 at @s run loot replace entity @n[type=minecraft:item_display,tag=slot.2] container.0 loot ws:casino/slot_machine
execute if score @s casino.slot_machine.rollsdone <= @s casino.slot_machine.rollsforslot3 at @s run loot replace entity @n[type=minecraft:item_display,tag=slot.3] container.0 loot ws:casino/slot_machine
execute at @s run playsound minecraft:block.dispenser.dispense block @a ~ ~ ~ 1 2
execute if score @s casino.slot_machine.rollsdone = @s casino.slot_machine.rollsforslot1 at @s run function ws:misc/casino/slot_machine.roll_slot {pitch:'0.7',id:1}
execute if score @s casino.slot_machine.rollsdone = @s casino.slot_machine.rollsforslot2 at @s run function ws:misc/casino/slot_machine.roll_slot {pitch:'1',id:2}
execute if score @s casino.slot_machine.rollsdone = @s casino.slot_machine.rollsforslot3 at @s run function ws:misc/casino/slot_machine.roll_slot {pitch:'1.3',id:3}