###Destroys adjacent defunct site planners###
execute positioned ~-9 ~-16 ~-17 as @e[tag=nitKSitePlanner,dx=18,dz=17,dy=21] at @s run setblock ~ ~ ~ air
execute positioned ~-9 ~-16 ~-17 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=!nitSiteExistsNorth] run place template nitk:railplanner_n ~ ~ ~-15

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

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