Add optional local origin mode for selected spawn - #28
Open
ForMooN-0118 wants to merge 1 commit into
Open
Conversation
|
Small issue, Distant Horizons doesn't seem to work with this fix, although it might be just me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, I made a test implementation for this issue and uploaded both the modified source code and a compiled 1.21.1 jar.
Source branch:
https://github.com/ForMooN-0118/Tellus/tree/local-origin-clean
Test build:
https://github.com/ForMooN-0118/Tellus/releases/tag/local-origin-test-1.21.1
This build adds an optional world-creation UI toggle:
Use selected spawn as local originWhen enabled, the location selected in the Tellus map screen is generated near Minecraft
X=0, Z=0instead of being placed at very large absolute coordinates. I also updated the terrain, biome, water, and OSM-related sampling logic to account for the local coordinate offset.I tested it with Zhangjiajie as the selected spawn location. The world generated near the origin, and Create Aeronautics / Sable physics contraptions worked normally there. The previous issues I observed at large coordinates, such as contraption misalignment, distorted rope/connection rendering, and airships failing to move correctly, no longer occurred in this test.
I also added a Simplified Chinese localization based on
en_us.json.For transparency, this implementation was AI-assisted. I used AI to help inspect the codebase and draft the changes, but I manually reviewed the modifications, built the project successfully, and tested the result in game.
This is only an unofficial test implementation, but it may be useful as a reference for adding an official local-origin option.