place template nitref:city/portal ~-7 ~ ~-8
setblock ~ 255 ~-1 minecraft:barrier

###Places the siteplanner on top###
place template nitref:siteplanner ~ ~8 ~

advancement grant @a[distance=..20] only nitref:nitref/ach3.3 build-portal

function nitref:siteplanner/cleanup