place template nitref:city/intersect_stair ~-3 ~ ~-4
setblock ~ 255 ~-1 minecraft:air

###Builds a bridge to the east if there is no unfinished tower there###
execute if entity @s unless block ~15 255 ~-1 minecraft:barrier run place template nitref:city/intersect_conn_e ~3 ~4 ~-5
setblock ~15 255 ~-1 minecraft:barrier

###Builds a bridge to the west if there is no unfinished tower there###
execute if entity @s unless block ~-15 255 ~-1 minecraft:barrier run place template nitref:city/intersect_conn_w ~-19 ~4 ~-5
setblock ~-15 255 ~-1 minecraft:barrier

###Builds a bridge to the south if there is no unfinished tower there###
execute if entity @s unless block ~ 255 ~14 minecraft:barrier run place template nitref:city/intersect_conn_s ~-4 ~4 ~2
setblock ~ 255 ~14 minecraft:barrier

###Builds a bridge to the north if there is no unfinished tower there###
execute if entity @s unless block ~ 255 ~-16 minecraft:barrier run place template nitref:city/intersect_conn_n ~-4 ~4 ~-20
setblock ~ 255 ~-16 minecraft:barrier

function nitref:siteplanner/cleanup