How to make Repeating rooms with precise gaps between them within world generation?

I am trying to basically create rooms exactly in coordinates of 0 1024 2048 etc etc but I need to check if you are in a structure or place structure wouldnt work, is there a way?
Continue to help post