#Project created by the koncept

#Random selection
scoreboard objectives add random_cluster dummy

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

#file refinement

execute if score cree77 random_cluster matches 1 if score block_bingo_orange_shulker_box 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_orange_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/orange_shulker_box

execute if score cree77 random_cluster matches 2 if score block_bingo_pink_shulker_box 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_pink_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/pink_shulker_box

execute if score cree77 random_cluster matches 3 if score block_bingo_purple_shulker_box 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_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/purple_shulker_box

execute if score cree77 random_cluster matches 4 if score block_bingo_red_shulker_box 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_red_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/red_shulker_box

execute if score cree77 random_cluster matches 5 if score block_bingo_shulker_box 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_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/shulker_box

execute if score cree77 random_cluster matches 6 if score block_bingo_white_shulker_box 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_white_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/white_shulker_box

execute if score cree77 random_cluster matches 7 if score block_bingo_yellow_shulker_box 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_yellow_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/yellow_shulker_box

execute if score cree77 random_cluster matches 8 if score block_bingo_black_shulker_box 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_black_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/black_shulker_box

execute if score cree77 random_cluster matches 9 if score block_bingo_blue_shulker_box 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_blue_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/blue_shulker_box

execute if score cree77 random_cluster matches 10 if score block_bingo_brown_shulker_box 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_brown_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/brown_shulker_box

execute if score cree77 random_cluster matches 11 if score block_bingo_cyan_shulker_box 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_cyan_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/cyan_shulker_box

execute if score cree77 random_cluster matches 12 if score block_bingo_gray_shulker_box 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_gray_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/gray_shulker_box

execute if score cree77 random_cluster matches 13 if score block_bingo_green_shulker_box 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_green_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/green_shulker_box

execute if score cree77 random_cluster matches 14 if score block_bingo_light_blue_shulker_box 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_blue_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/light_blue_shulker_box

execute if score cree77 random_cluster matches 15 if score block_bingo_light_gray_shulker_box 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_light_gray_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/light_gray_shulker_box

execute if score cree77 random_cluster matches 16 if score block_bingo_lime_shulker_box 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_lime_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/lime_shulker_box

execute if score cree77 random_cluster matches 17 if score block_bingo_magenta_shulker_box check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 17 if score block_bingo_magenta_shulker_box check_restart_replay matches 0 run function koncept.bingo:bingo/block/hardcore/magenta_shulker_box

scoreboard objectives remove random_cluster

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