Compatibility
Minecraft: Java Edition
1.21.1
Platforms
Supported environments
Creators
Details
Licensed MIT
Published last month
Updated last month
Worldspawn Y-Level Fix 
A server-side mod that fixes players respawning at the top of the world instead of at the normal worldspawn.
Here is the Changelog
What does this do?
Minecraft for some reason ignores the Y level that you define when running /setworldspawn, instead it will respawn you at the highest block.
This makes an underground worldspawn or anything where a block is above you impossible.
This mod creates a mixin that modifies that stupid behaviour. Now as long as there is enough room at the worldspawn, the player will just teleport there. If there isn't enough room, it will return to the normal behaviour.
I also made it work for Entities and when you teleport from things like the end portal, which should make the behavior fairly consistent.


