Structure Y level in a world with no blocks

I need your help figuring out is how to make villages, nether portals, shipwrecks, igloos, desert temples, end cities, and other structures generate at a set range of Y levels instead of being cut off in the void.

Continue to help post