###Destroys adjacent defunct site planners###
execute positioned ~1 ~ ~-9 as @e[tag=nitKSitePlanner,dx=17,dz=18,y=-64,dy=312] at @s run setblock ~ ~ ~ air
execute positioned ~1 ~ ~-9 as @e[tag=nitKWallPlanner,dx=17,dz=18,y=-64,dy=312] at @s run setblock ~ ~ ~ air
execute positioned ~1 ~-16 ~-9 as @e[tag=nitKRailPlanner,dx=17,dz=18,dy=21] at @s run setblock ~ ~ ~ air

###Sets new site planners at available positions###
execute if entity @s[tag=!nitSiteExistsEast] run place template nitk:siteplanner_e ~15 ~ ~

execute if entity @s[tag=!nitSiteExistsNorth] run place template nitk:siteplanner_n ~8 ~ ~-7

execute if entity @s[tag=!nitSiteExistsSouth] run place template nitk:siteplanner_s ~8 ~ ~7