#Project created by the koncept

#Random selection
scoreboard objectives add random_cluster dummy

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

#file refinement

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

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

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

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

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

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

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

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

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

execute if score cree77 random_cluster matches 10 if score item_bingo_snout_armor_trim_smithing_template 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_snout_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/snout_armor_trim_smithing_template

execute if score cree77 random_cluster matches 11 if score item_bingo_spire_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 11 if score item_bingo_spire_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/spire_armor_trim_smithing_template

execute if score cree77 random_cluster matches 12 if score item_bingo_tide_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 12 if score item_bingo_tide_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/tide_armor_trim_smithing_template

execute if score cree77 random_cluster matches 13 if score item_bingo_vex_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 13 if score item_bingo_vex_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/vex_armor_trim_smithing_template

execute if score cree77 random_cluster matches 14 if score item_bingo_ward_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 14 if score item_bingo_ward_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/ward_armor_trim_smithing_template

execute if score cree77 random_cluster matches 15 if score item_bingo_wayfinder_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 15 if score item_bingo_wayfinder_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/wayfinder_armor_trim_smithing_template

execute if score cree77 random_cluster matches 16 if score item_bingo_wild_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 16 if score item_bingo_wild_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/wild_armor_trim_smithing_template

execute if score cree77 random_cluster matches 17 if score item_bingo_flow_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 17 if score item_bingo_flow_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/flow_armor_trim_smithing_template

execute if score cree77 random_cluster matches 18 if score item_bingo_bolt_armor_trim_smithing_template check_restart_replay matches 1 run scoreboard players set cree77 bingo.random_start 1
execute if score cree77 random_cluster matches 18 if score item_bingo_bolt_armor_trim_smithing_template check_restart_replay matches 0 run function koncept.bingo:bingo/item/hardcore/bolt_armor_trim_smithing_template

scoreboard objectives remove random_cluster

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