#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 item_bingo_birch_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 1 if score item_bingo_birch_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/birch_door

execute if score cree77 random_cluster matches 2 if score item_bingo_spruce_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 2 if score item_bingo_spruce_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/spruce_door

execute if score cree77 random_cluster matches 3 if score item_bingo_oak_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 3 if score item_bingo_oak_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/oak_door

execute if score cree77 random_cluster matches 4 if score item_bingo_jungle_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 4 if score item_bingo_jungle_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/jungle_door

execute if score cree77 random_cluster matches 5 if score item_bingo_acacia_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 5 if score item_bingo_acacia_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/acacia_door

execute if score cree77 random_cluster matches 6 if score item_bingo_dark_oak_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 6 if score item_bingo_dark_oak_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/dark_oak_door

execute if score cree77 random_cluster matches 7 if score item_bingo_mangrove_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 7 if score item_bingo_mangrove_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/mangrove_door

execute if score cree77 random_cluster matches 8 if score item_bingo_cherry_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 8 if score item_bingo_cherry_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/cherry_door

execute if score cree77 random_cluster matches 9 if score item_bingo_bamboo_door check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 9 if score item_bingo_bamboo_door check_restart_replay matches 0 run function koncept.bingo:bingo/item/standart/bamboo_door

scoreboard objectives remove random_cluster

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