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