#randomize the ID
execute store result score .random_mob arena run random value -1..8

#location 1 - sewers
#slimed⚪ - easiest
execute if score .stage arena matches 1 if score .random_mob arena matches 0 if score .points arena matches 1.. if score .room_count room matches 0..5 if entity @s[tag=melee] run function main:game/mobs/spawn/id/id1
execute if score .stage arena matches 1 if score .random_mob arena matches 0 if score .points arena matches 1.. if score .room_count room matches ..3 if entity @s[tag=big] run function main:game/mobs/spawn/id/id1
#stone slimed⚪ - easy
execute if score .stage arena matches 1 if score .random_mob arena matches 1 if score .points arena matches 1.. if entity @s[tag=ranged] run function main:game/mobs/spawn/id/id2
#fat slime🟢 - easy
execute if score .stage arena matches 1 if score .random_mob arena matches 2 if score .points arena matches 1.. if score .room_count room matches 2.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id4
#camo slime🟢 - hard
execute if score .stage arena matches 1 if score .random_mob arena matches 3 if score .points arena matches 1.. if score .room_count room matches 5.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id5
#slime cube🟢 - medium
execute if score .stage arena matches 1 if score .random_mob arena matches 4 if score .points arena matches 1.. if score .room_count room matches 3.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id18
#slimed rumbler🔵 - medium
execute if score .stage arena matches 1 if score .random_mob arena matches 5 if score .points arena matches 1.. if score .room_count room matches 4.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id17


##location 2 - ice pit
#pengoon⚪
execute if score .stage arena matches 2 if score .random_mob arena matches 1 if score .points arena matches 1.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id10
execute if score .stage arena matches 2 if score .random_mob arena matches 1 if score .points arena matches 1.. if score .room_count room matches ..1 if entity @s[tag=big] run function main:game/mobs/spawn/id/id10
#pengun⚪
execute if score .stage arena matches 2 if score .random_mob arena matches 2 if score .points arena matches 1.. if entity @s[tag=ranged] run function main:game/mobs/spawn/id/id11
#pengannoneer🔵
execute if score .stage arena matches 2 if score .random_mob arena matches 3 if score .points arena matches 1.. if score .room_count room matches 2.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id15
#eggplosion🟢
execute if score .stage arena matches 2 if score .random_mob arena matches 4 if score .points arena matches 1.. if score .room_count room matches 3.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id16
#coldish🔵
execute if score .stage arena matches 2 if score .random_mob arena matches 5 if score .points arena matches 1.. if score .room_count room matches 4.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id21
#repenguin🟢
execute if score .stage arena matches 2 if score .random_mob arena matches 6 if score .points arena matches 1.. if score .room_count room matches 5.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id22

##location 3 - colosseum
#slave⚪
execute if score .stage arena matches 3 if score .random_mob arena matches 1 if score .points arena matches 1.. if score .room_count room matches 0..5 if entity @s[tag=melee] run function main:game/mobs/spawn/id/id6
execute if score .stage arena matches 3 if score .random_mob arena matches 1 if score .points arena matches 1.. if score .room_count room matches ..2 if entity @s[tag=big] run function main:game/mobs/spawn/id/id6
#sling slave⚪
execute if score .stage arena matches 3 if score .random_mob arena matches 2 if score .points arena matches 1.. if entity @s[tag=ranged] run function main:game/mobs/spawn/id/id7
#hungry⚪
execute if score .stage arena matches 3 if score .random_mob arena matches 3 if score .points arena matches 1.. if score .room_count room matches 2.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id9
#jawbreaker🟢
execute if score .stage arena matches 3 if score .random_mob arena matches 4 if score .points arena matches 1.. if score .room_count room matches 3.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id19
#boulderier🟢
execute if score .stage arena matches 3 if score .random_mob arena matches 5 if score .points arena matches 1.. if score .room_count room matches 4.. if entity @s[tag=ranged] run function main:game/mobs/spawn/id/id20
#juggernaut🔵
execute if score .stage arena matches 3 if score .random_mob arena matches 6 if score .points arena matches 1.. if score .room_count room matches 5.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id3

##location 4 - burnt forest
#weredog⚪
execute if score .stage arena matches 4 if score .random_mob arena matches 1 if score .points arena matches 1.. if score .room_count room matches 1.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id25
execute if score .stage arena matches 4 if score .random_mob arena matches 1 if score .points arena matches 1.. if score .room_count room matches 1..3 if entity @s[tag=big] run function main:game/mobs/spawn/id/id25
#ent⚪
execute if score .stage arena matches 4 if score .random_mob arena matches 2 if score .points arena matches 1.. if entity @s[tag=ranged] run function main:game/mobs/spawn/id/id26
#willow wisp⚪
execute if score .stage arena matches 4 if score .random_mob arena matches 3 if score .points arena matches 1.. if score .room_count room matches 1.. if entity @s[tag=ranged] run function main:game/mobs/spawn/id/id27 {"health":150,"tag":""}
#werewoof🟢
execute if score .stage arena matches 4 if score .random_mob arena matches 4 if score .points arena matches 1.. if score .room_count room matches 3.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id29
#molten cube🟢
execute if score .stage arena matches 4 if score .random_mob arena matches 5 if score .points arena matches 1.. if score .room_count room matches 4.. if entity @s[tag=melee] run function main:game/mobs/spawn/id/id30
#jack`ass🔵
execute if score .stage arena matches 4 if score .random_mob arena matches 6 if score .points arena matches 1.. if score .room_count room matches 5.. if entity @s[tag=big] run function main:game/mobs/spawn/id/id28

# execute if score .stage arena matches 2 if score .random_mob arena matches 4 if score .points arena matches 1.. if score .room_count room matches 4.. run function main:game/mobs/spawn/id/id17


execute if score .points_temp arena matches 1.. run function main:game/mobs/spawn/random