Distant Horizons
This mod adds a Level Of Detail (LOD) system to Minecraft.
This implementation renders simplified chunks outside the normal render distance
allowing for an increased view distance without harming performance.
Or in other words: this mod lets you see farther without turning your game into a slide show.
If you want to see a quick demo, check out a video covering the mod here:
WARNING: This is a very early version of the 1.18 version, EXPECT BUGS
Fabric version: 0.12.6
Fabric API version: 0.43.1+1.18
Notes:
This version has been confirmed to work in Eclipse and Retail Minecraft.
(Retail running fabric version 1.18-0.12.6)
source code installation
See the Fabric Documentation online for more detailed instructions:
https://fabricmc.net/wiki/tutorial:setup
Prerequisites
- A Java Development Kit (JDK) for Java 17 (recommended) or newer. Visit https://adoptium.net/releases.html for installers.
- Any Java IDE, for example Intellij IDEA and Eclipse. You may also use any other code editors, such as Visual Studio Code.
If using Ecplise:
- run the command:
./gradlew geneclipseruns - run the command:
./gradlew eclipse - Make sure eclipse has the JDK 17 installed. (This is needed so that eclipse can run minecraft)
- Import the project into eclipse
If using IntelliJ:
- open IDEA and import the build.gradle
- run the command:
./gradlew genIntellijRuns - refresh the Gradle project in IDEA if required
Compiling
Using GUI
- open a command line in the project folder
- run the command:
./gradlew build - the compiled jar file will be in the folder
build/libs/
If in terminal:
git clone -b 1.18 https://gitlab.com/jeseibel/minecraft-lod-mod.gitcd minecraft-lod-mod./gradlew build(must be run as root on linux)- The build should be in
build/libs/
Other commands
./gradlew --refresh-dependencies to refresh local dependencies.
./gradlew clean to reset everything (this does not affect your code) and then start the process again.
Note to self
The Minecraft source code is NOT added to your workspace in an editable way. Minecraft is treated like a normal Library. Sources are there for documentation and research purposes only.
Source code uses Mojang mappings.
The source code can be 'created' with the ./eclipse command and can be found in the following path:
minecraft-lod-mod\build\fg_cache\mcp\ VERSION \joined\ RANDOM_STRING \patch\output.jar
Open Source Acknowledgements
XZ for Java (data compression)
https://tukaani.org/xz/java.html
