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

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

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

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