#Project created by the koncept

#Random selection
scoreboard objectives add random_cluster dummy

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

#file refinement

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

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

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

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

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

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

execute if score cree77 random_cluster matches 7 if score block_bingo_light_blue_concrete 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_light_blue_concrete check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/light_blue_concrete

execute if score cree77 random_cluster matches 8 if score block_bingo_light_gray_concrete 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_light_gray_concrete check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/light_gray_concrete

execute if score cree77 random_cluster matches 9 if score block_bingo_lime_concrete 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_lime_concrete check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/lime_concrete

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

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

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

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

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

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

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



scoreboard objectives remove random_cluster

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