So I am making a datapack, and started up a world, then built a portal so I could travel to the nether to test some things...
Except my portal spawned me on the nether roof.
According to Google, portals "try to generate at a similar Y value". The portal was built in the overworld at Y=68, yet the portal generated on the roof (Y=128). I was wondering why this happened and what conditions would cause this to happen.
In case it is relevant, I did notice (when flying down in spectator mode) that where I spawned was above a massive lava ocean, could that have forced it to spawn on the roof as there was no land?