#execute as @s[tag=2Range,tag=!NonSquareRange] run execute positioned ~-2 ~-1.1 ~-2 run execute if entity @a[dx=3,dz=3,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=3Range,tag=!NonSquareRange] run execute positioned ~-3 ~-1.1 ~-3 run execute if entity @a[dx=5,dz=5,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=4Range,tag=!NonSquareRange] run execute positioned ~-4 ~-1.1 ~-4 run execute if entity @a[dx=7,dz=7,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=5Range,tag=!NonSquareRange] run execute positioned ~-5 ~-1.1 ~-5 run execute if entity @a[dx=9,dz=9,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=6Range,tag=!NonSquareRange] run execute positioned ~-6 ~-1.1 ~-6 run execute if entity @a[dx=11,dz=11,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=6SquareRange,tag=!NonSquareRange] run execute positioned ~-6 ~-1.1 ~-6 run execute if entity @a[dx=12,dz=12,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=7Range,tag=!NonSquareRange] run execute positioned ~-7 ~-1.1 ~-7 run execute if entity @a[dx=13,dz=13,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=9Range,tag=!NonSquareRange] run execute positioned ~-9 ~-1.1 ~-9 run execute if entity @a[dx=17,dz=17,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset




#execute as @s[tag=3Range] run execute if entity @a[distance=..3,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=4Range] run execute if entity @a[distance=..4,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=5Range] run execute if entity @a[distance=..5,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=6Range] run execute if entity @a[distance=..6,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=6SquareRange] run execute positioned ~-6 ~-1 ~-6 run execute if entity @a[dx=12,dz=12,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=7Range] run execute if entity @a[distance=..7,gamemode=!spectator] run tag @s add DoSpawnOffset
#execute as @s[tag=9Range] run execute if entity @a[distance=..9,gamemode=!spectator] run tag @s add DoSpawnOffset




#"SpawnerNum1" - Left room at the start, Skeleton spawner
#"SpawnerNum2 and 3" - Left room at the start, the 2 cave spider spawners
#"SpawnerNum4" - Right room at the start, Skeleton spawner
#"SpawnerNum5" - Right hallway at the start, Husk Spawner


tag @s remove SpawnMeAMob
tag @s remove DoSpawnOffset
execute as @s[tag=SpawnerNum1] run execute positioned ~-9 ~-1.1 ~-2 run execute if entity @a[dx=13,dz=2,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum2] run execute positioned ~-5 ~-1.1 ~-2 run execute if entity @a[dx=5,dz=6,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum3] run execute positioned ~-7 ~-1.1 ~-5 run execute if entity @a[dx=5,dz=6,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum4] run execute positioned ~-6 ~-2.1 ~-4 run execute if entity @a[dx=9,dz=2,dy=2,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum5] run execute positioned ~1 ~-1.1 ~-2 run execute if entity @a[dx=5,dz=1,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum6] run execute positioned ~ ~-0.1 ~-4 run execute if entity @a[dx=4,dz=5,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum7] run execute positioned ~ ~-0.1 ~ run execute if entity @a[dx=4,dz=5,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum8] run execute positioned ~-2 ~-0.1 ~-3 run execute if entity @a[dx=1,dz=2,dy=2,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum9] run execute positioned ~ ~-1.1 ~-6 run execute if entity @a[dx=11,dz=4,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum9] run execute positioned ~ ~-1.1 ~-6 run execute if entity @a[dx=2,dz=10,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum10] run execute positioned ~-2 ~-0.1 ~1 run execute if entity @a[dx=8,dz=3,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum11] run execute positioned ~-5 ~-0.1 ~-5 run execute if entity @a[dx=8,dz=3,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum11] run execute positioned ~-5 ~-0.1 ~ run execute if entity @a[dx=4,dz=7,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum12] run execute positioned ~1 ~-0.1 ~-4 run execute if entity @a[dx=4,dz=9,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum13] run execute positioned ~-5 ~-0.1 ~-7 run execute if entity @a[dx=7,dz=5,dy=3,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum14] run execute positioned ~-5 ~-7.1 ~-13 run execute if entity @a[dx=8,dz=8,dy=4,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum14] run execute positioned ~-4 ~-1.1 ~-3 run execute if entity @a[dx=9,dz=2,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum15] run execute positioned ~-5 ~-1.1 ~ run execute if entity @a[dx=10,dz=10,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum16] run execute positioned ~-11 ~-1.1 ~-7 run execute if entity @a[dx=10,dz=10,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset




execute as @s[tag=SpawnerNum17] run execute positioned ~-2 ~-0.1 ~ run execute if entity @a[dx=4,dz=2,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset


execute as @s[tag=SpawnerNum18] run execute positioned ~-2 ~-0.1 ~-2 run execute if entity @a[dx=2,dz=4,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset


execute as @s[tag=SpawnerNum19] run execute positioned ~ ~-0.1 ~-5 run execute if entity @a[dx=0,dz=6,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset


execute as @s[tag=SpawnerNum20] run execute positioned ~-1 ~-0.1 ~ run execute if entity @a[dx=0,dz=6,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset
execute as @s[tag=SpawnerNum20] run execute positioned ~-6 ~-0.1 ~ run execute if entity @a[dx=5,dz=0,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset


execute as @s[tag=SpawnerNum21] run execute positioned ~-7 ~-0.1 ~ run execute if entity @a[dx=6,dz=1,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset

execute as @s[tag=SpawnerNum22] run execute positioned ~ ~-0.1 ~1 run execute if entity @a[dx=0,dz=7,dy=1,gamemode=!spectator] run tag @s add DoSpawnOffset


execute as @s[tag=DoSpawnOffset] run function zzzzdonotuse:mobspawners/spawnerstuff/pyramid/checkspawnoffset
