#Project created by the koncept

#Random selection
scoreboard objectives add random_cluster dummy

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

#file refinement

execute if score cree77 random_cluster matches 1 if score item_bingo_netherite_pickaxe 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_netherite_pickaxe check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_pickaxe

execute if score cree77 random_cluster matches 2 if score item_bingo_netherite_shovel 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_netherite_shovel check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_shovel

execute if score cree77 random_cluster matches 3 if score item_bingo_netherite_sword 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_netherite_sword check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_sword

execute if score cree77 random_cluster matches 4 if score item_bingo_netherite_leggings 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_netherite_leggings check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_leggings

execute if score cree77 random_cluster matches 5 if score item_bingo_netherite_helmet 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_netherite_helmet check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_helmet

execute if score cree77 random_cluster matches 6 if score item_bingo_netherite_hoe 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_netherite_hoe check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_hoe

execute if score cree77 random_cluster matches 7 if score item_bingo_netherite_ingot 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_netherite_ingot check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_ingot

execute if score cree77 random_cluster matches 8 if score item_bingo_netherite_boots 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_netherite_boots check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_boots

execute if score cree77 random_cluster matches 9 if score item_bingo_netherite_chestplate 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_netherite_chestplate check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_chestplate

execute if score cree77 random_cluster matches 10 if score item_bingo_netherite_ingot check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 10 if score item_bingo_netherite_ingot check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/netherite_ingot

scoreboard objectives remove random_cluster

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