Project: Fake LOD Chunks Mod for Minecraft Java Edition
- Basic Information
- Minecraft Version: 1.21.4
- Mod Loader: Fabric
- Language: Java
- Mod Name: FakeLOD
- Mod ID: fakelod
- Target Platform: Minecraft Java Edition on Android using compatible Fabric launchers, as well as PC.
- Main Goal: Create a lightweight LOD (Level of Detail) rendering mod inspired by the distant terrain rendering concept of Distant Horizons, but using a simpler, performance-focused implementation.
- Main Concept
Create a mod that renders nearby Minecraft chunks normally while displaying distant terrain as low-resolution, pixelated fake chunks.
For example, if the player sets the actual Minecraft render distance to 4 chunks, only nearby terrain within that distance should be rendered normally.
Beyond the actual render distance, the mod should display a simplified, low-resolution representation of the surrounding terrain.
The player should be able to see what looks like 32, 64, or even 100 chunks of terrain without rendering every distant chunk at full detail.
IMPORTANT: Fake chunks must be lightweight LOD representations, not fully loaded Minecraft chunks.
- Actual Render Distance and Fake Distance
Create two separate settings.
A. Real Render Distance
- Use Minecraft's normal render distance.
- Support settings such as 2, 4, 6, 8, 12, and 16 chunks, subject to device performance.
- Nearby chunks must retain their normal Minecraft appearance.
- Do not override the user's actual Minecraft render-distance setting.
B. Fake LOD Distance
Provide selectable distances:
- 16 chunks
- 32 chunks
- 48 chunks
- 64 chunks
- 80 chunks
- 100 chunks
- Custom distance
The fake LOD distance must extend the visible terrain beyond the real render distance.
Example:
Real Render Distance = 4 chunks Fake LOD Distance = 100 chunks
Expected result:
- The nearest chunks render normally.
- Distant terrain is displayed using simplified LOD representations.
- Distant mountains, hills, forests, and terrain silhouettes remain visible.
- Distant terrain should look pixelated and less detailed.
- The game must not attempt to render all 100 chunks as normal Minecraft chunks.
- Low-Resolution Fake Chunk Rendering
Implement a custom terrain LOD rendering system.
Requirements:
- Represent distant terrain using low-resolution terrain meshes, impostors, or another suitable lightweight rendering technique.
- Reduce the number of vertices and triangles used for distant terrain.
- Sample terrain height and surface appearance at a lower resolution.
- Use simplified colors derived from actual terrain surface blocks.
- Render distant terrain with a pixelated appearance.
- Reduce texture detail and avoid unnecessary texture sampling.
- Merge compatible terrain surfaces where practical.
- Use chunk-based LOD meshes or another efficient spatial representation.
- Reuse existing LOD data whenever possible.
- Update only terrain regions that actually require changes.
The distant terrain must resemble Minecraft's real terrain rather than a random collection of colored blocks.
- Terrain Generation and Data Sources
The mod must obtain terrain information without loading every distant chunk into the normal rendering system.
Use an appropriate data source depending on availability:
- Existing terrain and chunk data.
- Terrain information available from Minecraft's world generation system.
- Previously cached terrain data.
- Lightweight terrain sampling where technically possible.
For unexplored terrain, investigate whether Minecraft 1.21.4's world-generation APIs can provide the necessary information without fully loading and rendering each chunk.
Do not assume that every terrain feature can be reproduced accurately without generating additional world data.
If accurate terrain information is unavailable, use a clearly defined approximation or display only previously generated terrain.
Never modify the actual world terrain merely to produce the LOD effect.
- Performance Optimization
Performance is the highest priority.
Implement:
- Background processing for expensive LOD mesh calculations.
- Safe synchronization between worker threads and the rendering thread.
- Asynchronous LOD data preparation.
- Efficient mesh generation.
- Frustum culling.
- Distance-based LOD selection.
- Reuse of cached terrain meshes.
- Limited memory usage.
- Controlled background task queues.
- Incremental updates instead of rebuilding all distant terrain.
- Efficient GPU buffer management.
- Cleanup of outdated LOD data.
- Configurable CPU and memory budgets.
Avoid:
- Loading every distant chunk as a normal Minecraft chunk.
- Excessive allocations every frame.
- Blocking the main game thread.
- Repeatedly rebuilding unchanged terrain.
- Creating thousands of unnecessary render objects.
- Generating large numbers of terrain meshes simultaneously.
Provide a performance mode designed for low-end Android devices.
- LOD Quality Settings
Add these settings:
Performance Mode
- Ultra Performance
- Performance
- Balanced
- Quality
LOD Resolution
- 2 × 2 terrain sampling
- 4 × 4 terrain sampling
- 8 × 8 terrain sampling
- 16 × 16 terrain sampling
These values represent configurable terrain sampling granularity, not a guarantee of the exact final pixel dimensions.
Additional Settings
- Enable/Disable Fake LOD
- Fake LOD Distance
- LOD Update Rate
- Maximum Background Tasks
- Maximum LOD Memory
- Distant Terrain Fade
- Terrain Color Accuracy
- Smooth or Pixelated LOD
- LOD Cache
- Debug Overlay
Allow users to select lower-quality terrain representations for better performance.
- In-Game Configuration GUI
Create a clean Minecraft-style configuration screen.
The GUI must contain:
- Enable Fake LOD toggle
- Real Render Distance information
- Fake LOD Distance slider
- LOD Quality selector
- Pixelation Level selector
- Performance Mode selector
- Maximum Memory setting
- Apply button
- Reset to Defaults button
Display the following information:
Real Render Distance: 4 chunks Fake LOD Distance: 100 chunks LOD Status: Enabled LOD Regions: Number of cached regions LOD Memory Usage: Current estimated usage LOD Generation: Active or Idle
Settings must be saved in a configuration file and restored when the game restarts.
- Distant Terrain Appearance
The LOD system should attempt to preserve the large-scale appearance of the real Minecraft world.
Requirements:
- Mountains should remain recognizable.
- Hills should retain their overall shape.
- Plains should appear relatively flat.
- Forests should use simplified vegetation representations where practical.
- Water should be represented using simplified surfaces.
- Snow-covered terrain should retain appropriate colors.
- Desert terrain should appear sandy.
- Grass, stone, sand, snow, and other common surfaces should use suitable colors.
- Avoid obvious gaps between real terrain and LOD terrain.
- Avoid flickering, z-fighting, and visible seams.
- Blend the transition between real chunks and fake terrain where possible.
The farthest terrain should gradually become less detailed rather than suddenly disappearing.
- Compatibility
Target:
- Minecraft Java Edition 1.21.4
- Fabric Loader
- Fabric API compatible with Minecraft 1.21.4
Investigate compatibility with Sodium 0.6.13.
If Sodium compatibility requires separate rendering integration, implement an appropriate compatibility layer rather than assuming the default Minecraft renderer and Sodium use identical rendering paths.
Do not require Distant Horizons to be installed.
Do not bundle copyrighted code from another mod.
Keep dependencies minimal and document any mandatory dependencies.
- Android Optimization
Optimize the mod for compatible Minecraft Java launchers running on Android.
Include:
- Low memory consumption.
- Conservative background processing.
- Limited mesh complexity.
- Low-resolution terrain sampling.
- Efficient GPU resource management.
- Configurable LOD distances.
- Safe fallback behavior if the graphics backend does not support a required feature.
Avoid desktop-only assumptions.
Do not promise a particular FPS increase because performance depends on the device, GPU, world, and other installed mods.
- Technical Implementation
Before writing the code:
- Inspect Minecraft 1.21.4's relevant terrain, chunk, world-generation, and rendering APIs.
- Identify the correct Fabric rendering hooks.
- Determine how to render distant LOD terrain without interfering with normal chunks.
- Investigate Sodium 0.6.13 compatibility.
- Design the LOD data structures and caching system.
- Define safe threading and GPU resource ownership.
- Implement the smallest working prototype.
- Test the prototype before adding advanced features.
Use Java and the correct Fabric Loom configuration for Minecraft 1.21.4.
Use Mixin only where necessary and ensure all mixins target the correct Minecraft version.
Do not invent Minecraft methods, Fabric APIs, or rendering hooks.
If an API is unavailable, find a compatible alternative and explain the design decision.
- Deliverables
Provide a complete, buildable project containing:
- settings.gradle
- build.gradle
- gradle.properties
- fabric.mod.json
- Java source files
- Mixin configuration, if needed
- Configuration management
- LOD terrain data structures
- LOD mesh generation
- Rendering implementation
- In-game configuration GUI
- Sodium compatibility layer, if required
- README with build and installation instructions
Include the complete source code for every required file.
Do not provide incomplete snippets, pseudocode presented as finished code, or references to missing classes.
Ensure that the project builds into a working JAR for Minecraft 1.21.4 Fabric.
- Testing Requirements
Test the mod in these scenarios:
Test A:
Real Render Distance = 4 Fake LOD Distance = 32
Test B:
Real Render Distance = 4 Fake LOD Distance = 64
Test C:
Real Render Distance = 4 Fake LOD Distance = 100
Verify:
- Nearby chunks render normally.
- Distant terrain is represented by LOD geometry.
- Distant LOD does not require every distant chunk to be fully rendered.
- Terrain data is cached correctly.
- Moving around does not cause continuous excessive mesh regeneration.
- Memory usage remains controlled.
- No major terrain gaps appear.
- The game does not crash when changing LOD distance.
- The mod works with the intended Fabric version.
- Sodium compatibility is tested rather than assumed.
Start with a small, reliable implementation and then add optimizations.
FINAL OBJECTIVE:
Create a lightweight Minecraft Fabric 1.21.4 LOD mod that allows players to keep their real render distance low, such as 4 chunks, while seeing simplified, pixelated distant terrain extending up to 100 chunks.
The distant terrain must be a lightweight visual representation, not 100 chunks of normal full-detail rendering.
Prioritize stable rendering, accurate terrain silhouettes, low memory usage, and Android compatibility.
Build a cached-terrain LOD prototype that samples only already-loaded chunks and renders simplified geometry without forcing distant chunks to load.
Add persistent settings and an in-game configuration screen.
Add compatibility metadata and documentation, including the limits of cached-only terrain and Sodium testing.
Task 1 source lookups — core client events, already-loaded chunk access, and world-render APIs:
Core prototype: added loaded-chunk sampling, worker-built cached quads, and the Fabric project skeleton.
Next: add persisted settings and the in-game controls, then connect distance, sampling, and budgets to the renderer.
Settings and the O-key configuration screen are in place, including persistent distance, resolution, quality, mode, memory, task-budget, and optional-detail controls. I’m completing the remaining visual toggles against the mounted rendering API next.
Compatibility and documentation: record the cached-only behavior and test status, and verify what the mounted source can establish about Sodium 0.6.13.
Created the FakeLOD Fabric 1.21.4 project with an O-key settings screen, persistent configuration, and a client renderer that samples only already-loaded chunks. Mesh preparation runs on a bounded background worker; rendering uses cached colored quads with distance and frustum culling and a configurable memory limit.
Important limitation: the configured fake distance is a draw-range cap, not a source of new terrain. Unexplored terrain won’t appear; the cache can show previously loaded terrain as you travel. The representation is coarse and doesn’t track later terrain edits reliably.
The in-game scenarios for fake distances 32, 64, and 100 were not run. Sodium 0.6.13 is absent from the mounted source, so its callback behavior and compatibility remain unverified; no Sodium-specific adapter is included. Android compatibility is also untested.
package com.kodari.fakelod;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public final class FakeLod implements ModInitializer {
public static final String MOD_ID = "fakelod";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
LOGGER.info("FakeLOD initialized.");
}
}