###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 ~10 ~ ~-8 ~10 ~ ~-11 air replace dropper
execute if entity @s[tag=nitCKeepPlanner] run fill ~10 ~ ~8 ~10 ~ ~11 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=!nitSiteExistsEast,tag=nitCSitePlanner] run place template nitco:keepplanner_e ~15 ~ ~

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

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

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

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

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