execute if score .stage arena matches 1 at @s positioned ~-15.5 ~-5 ~ as @a[dx=30,dy=30,dz=3] run function main:game/wave/boss_spawn
execute if score .stage arena matches 3 at @s positioned ~ ~-5 ~-15.5 as @a[dx=3,dy=30,dz=30] run function main:game/wave/boss_spawn
execute if score .stage arena matches 2 at @s positioned ~-15.5 ~-5 ~ as @a[dx=30,dy=30,dz=3] run function main:game/wave/boss_spawn
execute if score .stage arena matches 4 at @s positioned ~-15.5 ~-5 ~ as @a[dx=30,dy=30,dz=3] run function main:game/wave/boss_spawn