#Project created by the koncept

#Random selection
scoreboard objectives add random_cluster dummy

execute store result score cree77 random_cluster run random value 1..9

#file refinement

execute if score cree77 random_cluster matches 1 if score block_bingo_oak_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 1 if score block_bingo_oak_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/oak_stairs

execute if score cree77 random_cluster matches 2 if score block_bingo_spruce_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 2 if score block_bingo_spruce_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/spruce_stairs

execute if score cree77 random_cluster matches 3 if score block_bingo_birch_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 3 if score block_bingo_birch_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/birch_stairs

execute if score cree77 random_cluster matches 4 if score block_bingo_jungle_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 4 if score block_bingo_jungle_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/jungle_stairs

execute if score cree77 random_cluster matches 5 if score block_bingo_acacia_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 5 if score block_bingo_acacia_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/acacia_stairs

execute if score cree77 random_cluster matches 6 if score block_bingo_dark_oak_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 6 if score block_bingo_dark_oak_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/dark_oak_stairs

execute if score cree77 random_cluster matches 7 if score block_bingo_mangrove_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 7 if score block_bingo_mangrove_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/mangrove_stairs

execute if score cree77 random_cluster matches 8 if score block_bingo_cherry_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 8 if score block_bingo_cherry_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/cherry_stairs

execute if score cree77 random_cluster matches 9 if score block_bingo_bamboo_stairs check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 9 if score block_bingo_bamboo_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/bamboo_stairs

scoreboard objectives remove random_cluster

execute if score cree77 bingo.random_start matches 1 run function koncept.bingo:bingo/random_start1