###Destroys adjacent defunct site planners###
execute if entity @s[tag=nitCSitePlanner] run fill ~-8 ~ ~-8 ~-8 ~ ~-8 air replace dropper
execute if entity @s[tag=nitCSitePlanner] run fill ~8 ~ ~-8 ~8 ~ ~-8 air replace dropper
execute if entity @s[tag=nitCSitePlanner] run fill ~ ~ ~-16 ~ ~ ~-16 air replace dropper

execute if entity @s[tag=nitCKeepPlanner] run fill ~-8 ~ ~-10 ~-11 ~ ~-10 air replace dropper
execute if entity @s[tag=nitCKeepPlanner] run fill ~8 ~ ~-10 ~11 ~ ~-10 air replace dropper
execute if entity @s[tag=nitCKeepPlanner] run fill ~ ~ ~-18 ~ ~ ~-20 air replace dropper

###Sets new site planners at available positions, if building an initial Keep###
execute if entity @s[tag=!nitSiteExistsNorth,tag=nitCSitePlanner] run place template nitco:keepplanner_n ~ ~ ~-15

execute if entity @s[tag=!nitSiteExistsEast,tag=nitCSitePlanner] run place template nitco:keepplanner_e ~5 ~ ~-10

execute if entity @s[tag=!nitSiteExistsWest,tag=nitCSitePlanner] run place template nitco:keepplanner_w ~-5 ~ ~-10

###Sets new site planners at available positions###
execute if entity @s[tag=!nitSiteExistsNorth,tag=nitCKeepPlanner] run place template nitco:keepplanner_n ~ ~ ~-15

execute if entity @s[tag=!nitSiteExistsEast,tag=nitCKeepPlanner] run place template nitco:keepplanner_e ~5 ~ ~-10

execute if entity @s[tag=!nitSiteExistsWest,tag=nitCKeepPlanner] run place template nitco:keepplanner_w ~-5 ~ ~-10