Skip to content

Add Y coordinate remapping for extended world heights - #29

Open
LonghiTW wants to merge 1 commit into
oryxel1:mainfrom
LonghiTW:add-y-coordinate-remapping
Open

Add Y coordinate remapping for extended world heights#29
LonghiTW wants to merge 1 commit into
oryxel1:mainfrom
LonghiTW:add-y-coordinate-remapping

Conversation

@LonghiTW

@LonghiTW LonghiTW commented Jul 7, 2026

Copy link
Copy Markdown

Adds Y coordinate remapping so Bedrock players can view Java worlds outside the native Bedrock vertical range.

Changes:

  • Adds a configurable vertical remap threshold.
  • Keeps fake Y centered around Bedrock-safe Y 128.
  • Remaps player position packets, entity spawn Y, block updates, block entities, and chunk sections.
  • Sends only the visible 24 Bedrock-compatible chunk sections and fills missing sections with air.
  • Restores Geyser chunk cache height metadata on login/respawn/world changes.

Note:
I verified the patch applies cleanly. On my local JDK 26, upstream Lombok 1.18.36 fails during annotation processing with ExceptionInInitializerError; using Lombok 1.18.46 in a disposable verification clone allows compileJava to complete successfully.

BTW, This is extracted from my fork GeyserExtendedWorlds, where I experimented with extended coordinate remapping for Bedrock clients. I kept this PR focused on the upstream-compatible behavior change and avoided project rename / downstream branding changes.

@Zoriot Zoriot mentioned this pull request Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant