scoreboard players set .stage boss 0

#slime queen🔴
execute if score .stage arena matches 1 unless entity @e[type=#main:enemies,tag=enemy,tag=id12_mob] run function main:game/mobs/spawn/id/id12
#last gladiator🔴
execute if score .stage arena matches 3 unless entity @e[type=#main:enemies,tag=enemy,tag=id13_mob] run function main:game/mobs/spawn/id/id13
#penguineer🔴
execute if score .stage arena matches 2 unless entity @e[type=#main:enemies,tag=enemy,tag=id14_mob] run function main:game/mobs/spawn/id/id14
#forest witch🔴
execute if score .stage arena matches 4 unless entity @e[type=#main:enemies,tag=enemy,tag=id23_mob] run function main:game/mobs/spawn/id/id23

#set
execute if score .stage arena matches 1 as @e[type=#main:enemies,tag=enemy,tag=boss] run tp @s 58 -59 85

execute if score .stage arena matches 3 as @e[type=#main:enemies,tag=enemy,tag=boss] run tp @s 157.5 -60 84.5

execute if score .stage arena matches 2 as @e[type=#main:enemies,tag=enemy,tag=boss] run tp @s 157.5 -58 185.5

execute if score .stage arena matches 4 as @e[type=#main:enemies,tag=enemy,tag=boss] run tp @s 165 -59 -30

execute as @e[type=#main:enemies,tag=enemy,tag=boss] at @s run playsound entity.lightning_bolt.thunder master @a ~ ~ ~ 20 1

tag @a add boss_fight

scoreboard players set .stop boss 10