#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_pink_carpet 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_pink_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/pink_carpet

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

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

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

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

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

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

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

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

execute if score cree77 random_cluster matches 10 if score block_bingo_orange_carpet 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_orange_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/orange_carpet

execute if score cree77 random_cluster matches 11 if score block_bingo_red_carpet 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_red_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/red_carpet

execute if score cree77 random_cluster matches 12 if score block_bingo_brown_carpet 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_brown_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/brown_carpet

execute if score cree77 random_cluster matches 13 if score block_bingo_black_carpet 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_black_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/black_carpet

execute if score cree77 random_cluster matches 14 if score block_bingo_light_gray_carpet 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_light_gray_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/light_gray_carpet

execute if score cree77 random_cluster matches 15 if score block_bingo_gray_carpet 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_gray_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/gray_carpet

execute if score cree77 random_cluster matches 16 if score block_bingo_white_carpet 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_white_carpet check_restart_replay matches 0 run function koncept.bingo:bingo/block/standart/white_carpet



scoreboard objectives remove random_cluster

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