#Project created by the koncept

#Random selection
scoreboard objectives add random_cluster dummy

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

#file refinement

execute if score cree77 random_cluster matches 1 if score block_bingo_stone_bricks 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_stone_bricks check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/stone_bricks

execute if score cree77 random_cluster matches 2 if score block_bingo_stone_brick_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_stone_brick_stairs check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/stone_brick_stairs

execute if score cree77 random_cluster matches 3 if score block_bingo_stone_brick_wall 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_stone_brick_wall check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/stone_brick_wall

execute if score cree77 random_cluster matches 4 if score block_bingo_stone_brick_slab 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_stone_brick_slab check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/stone_brick_slab

execute if score cree77 random_cluster matches 5 if score block_bingo_cracked_stone_bricks 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_cracked_stone_bricks check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/cracked_stone_bricks

execute if score cree77 random_cluster matches 6 if score block_bingo_smooth_stone_slab 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_smooth_stone_slab check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/smooth_stone_slab

scoreboard objectives remove random_cluster

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