execute if entity @s[tag=nitSiteEast] if block ~ ~ ~2 stone_bricks run place template nitk:town/wall_ramp_up ~15 ~-3 ~9 180
execute if entity @s[tag=nitSiteEast] if block ~ ~ ~-2 stone_bricks run place template nitk:town/wall_ramp_up ~15 ~-3 ~5 180

execute if entity @s[tag=nitSiteWest] if block ~ ~ ~2 stone_bricks run place template nitk:town/wall_ramp_up ~-15 ~-3 ~-5
execute if entity @s[tag=nitSiteWest] if block ~ ~ ~-2 stone_bricks run place template nitk:town/wall_ramp_up ~-15 ~-3 ~-9

execute if entity @s[tag=nitSiteNorth] if block ~2 ~ ~ stone_bricks run place template nitk:town/wall_ramp_up ~9 ~-3 ~-15 clockwise_90
execute if entity @s[tag=nitSiteNorth] if block ~-2 ~ ~ stone_bricks run place template nitk:town/wall_ramp_up ~5 ~-3 ~-15 clockwise_90

execute if entity @s[tag=nitSiteSouth] if block ~2 ~ ~ stone_bricks run place template nitk:town/wall_ramp_up ~-5 ~-3 ~15 counterclockwise_90
execute if entity @s[tag=nitSiteSouth] if block ~-2 ~ ~ stone_bricks run place template nitk:town/wall_ramp_up ~-9 ~-3 ~15 counterclockwise_90

###New site cleanup with one unidirectional site planners###
tag @s[tag=nitSiteEast] add nitSiteExistsEast
tag @s[tag=nitSiteWest] add nitSiteExistsWest
tag @s[tag=nitSiteNorth] add nitSiteExistsNorth
tag @s[tag=nitSiteSouth] add nitSiteExistsSouth
execute if entity @s[tag=nitSiteEast] if block ~ ~ ~2 stone_bricks positioned ~ ~3 ~2 run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteEast] if block ~ ~ ~-2 stone_bricks positioned ~ ~3 ~-2 run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteWest] if block ~ ~ ~2 stone_bricks positioned ~ ~3 ~2 run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteWest] if block ~ ~ ~-2 stone_bricks positioned ~ ~3 ~-2 run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteNorth] if block ~2 ~ ~ stone_bricks positioned ~2 ~3 ~ run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteNorth] if block ~-2 ~ ~ stone_bricks positioned ~-2 ~3 ~ run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteSouth] if block ~2 ~ ~ stone_bricks positioned ~2 ~3 ~ run function nitk:siteplanner/new_sites_check
execute if entity @s[tag=nitSiteSouth] if block ~-2 ~ ~ stone_bricks positioned ~-2 ~3 ~ run function nitk:siteplanner/new_sites_check

execute if entity @s[tag=nitSiteEast] run tag @s add nitSiteExistsNorth
execute if entity @s[tag=nitSiteEast] run tag @s add nitSiteExistsSouth
execute if entity @s[tag=nitSiteWest] run tag @s add nitSiteExistsNorth
execute if entity @s[tag=nitSiteWest] run tag @s add nitSiteExistsSouth
execute if entity @s[tag=nitSiteNorth] run tag @s add nitSiteExistsEast
execute if entity @s[tag=nitSiteNorth] run tag @s add nitSiteExistsWest
execute if entity @s[tag=nitSiteSouth] run tag @s add nitSiteExistsEast
execute if entity @s[tag=nitSiteSouth] run tag @s add nitSiteExistsWest
execute positioned ~ ~3 ~ run function nitk:siteplanner/walls/new_walls_check