DVexMC

Create a Minecraft Java Fabric mod called "FakeRenderDistance".

TARGET ENVIRONMENT:

  • Minecraft Java Edition 1.21.11
  • Fabric Loader 0.19.3
  • Must work on PojavLauncher on Android ARM64.
  • GPU: PowerVR Rogue, OpenGL ES 3.2.
  • Must prioritize compatibility with mobile hardware.

THE GOAL:

I want the visual appearance of an extremely high Minecraft render distance while keeping my REAL render distance at only 5 chunks.

I DO NOT want to render, load, or generate actual distant Minecraft chunks.

Instead, create a lightweight visual illusion of distant terrain.

CORE FEATURES:

  1. FAKE DISTANT TERRAIN
  • Render simplified, low-detail silhouettes of distant End islands beyond the player's normal render distance.
  • The silhouettes should resemble the general shapes of Minecraft End islands.
  • Use extremely simple geometry and flat textures.
  • A deliberately pixelated, low-resolution, Minecraft-like appearance is acceptable.
  • Prioritize the illusion of distant islands over geometric accuracy.
  1. PERFORMANCE
  • Do not load or generate distant Minecraft chunks.
  • Do not create thousands of individual block objects.
  • Do not use Distant Horizons or depend on any of its libraries.
  • Avoid expensive shaders, compute shaders, and advanced OpenGL features.
  • Avoid unnecessary native libraries.
  • Use a small number of simple meshes and draw calls.
  • Keep memory usage as low as possible.
  • Target stable performance on a phone with 4 GB RAM.
  1. RENDERING
  • The fake islands must appear beyond the normal five-chunk render distance.
  • They must be visible from the central End island.
  • They should appear to stretch toward the horizon, creating the illusion that the End has a much larger render distance.
  • Keep the fake terrain visually separate from actual Minecraft terrain.
  • The fake islands must not have collision, block interactions, entities, or gameplay effects.
  • The fake terrain must not interfere with the real terrain or player movement.
  1. CAMERA BEHAVIOR
  • The silhouettes should remain positioned in the distant world rather than behaving like a flat image attached to the screen.
  • They must look correct as the player rotates the camera.
  • They should remain stable while the player moves around the End.
  • Avoid visible flickering, clipping, and sudden popping.
  • Do not draw fake islands directly over nearby real terrain.
  1. DIMENSION RESTRICTION
  • Enable the effect only in the Minecraft End dimension.
  • Do not display fake islands in the Overworld or Nether.
  • Provide a configuration option to enable or disable the effect.
  1. COMPATIBILITY
  • Use Fabric APIs and Minecraft 1.21.11-compatible rendering methods.
  • Avoid assumptions that desktop OpenGL features are available on Android.
  • Do not depend on unsupported native libraries.
  • Do not require Distant Horizons.
  • Avoid invasive mixins unless absolutely necessary.
  • Check compatibility with Sodium if possible.
  1. IMPLEMENTATION
  • Generate a complete, compilable Fabric mod project.
  • Include all required source files, mixins if needed, metadata, and Gradle configuration.
  • Include build instructions.
  • Produce the final distributable JAR.
  • Do not provide pseudocode or incomplete placeholders.

IMPORTANT DESIGN REQUIREMENT:

The objective is NOT to recreate the actual terrain beyond the render distance.

The objective is to create a convincing visual illusion using minimal geometry and memory.

If fully world-positioned distant silhouettes are too complicated, implement a simpler low-poly distant-island system instead.

Before finishing, verify that the code targets Minecraft 1.21.11 and does not accidentally introduce dependencies on Distant Horizons or desktop-only rendering libraries.

Kodari AI
KodariOct 17 at 11:56 am 4
FakeRenderDistance
Fabric mod for Minecraft 1.21.11 that creates a lightweight visual illusion of distant End islands beyond the real 5-chunk render distance. Renders simple, low-poly silhouettes using minimal geometry and draw calls, without loading or generating actual chunks. Works only in the End dimension, configurable via options file. Optimized for mobile ARM64 devices with PowerVR GPUs, avoiding shaders, compute shaders, and native libraries. Uses world-positioned meshes that remain stable during camera rotation and movement, providing the appearance of an extremely high render distance while maintaining low memory usage and stable performance on 4GB RAM devices.
  1. Set up a minimal Fabric 1.21.11 client mod and Gradle project.

  2. Add deterministic, world-positioned low-poly End-island silhouettes using the Fabric world-render event.

  3. Add a simple config-file toggle and verify the generated files target only 1.21.11 APIs.

Created the Fabric 1.21.11 client mod project. It draws 168 fixed-position, low-poly End-island silhouettes in a buffered render pass; it does not load or generate chunks, alter the real render distance, or add collision or gameplay effects. The effect is enabled by default and can be disabled in config/fakerenderdistance.properties. It uses no mixins or Distant Horizons dependency; Sodium compatibility was not runtime-tested.

To get the JAR in Kodari: click Compile in the desktop top bar, or ⋮ → Compile Project on a phone. Click Compile in the window, then Download when the build succeeds. Set Minecraft’s render distance to 5 chunks for the intended setup.

DVexMC

The compilation failed with this error:

code
Compilation failed with 8 error(s):

ERROR in src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 14: package net.fabricmc.fabric.api.client.rendering.v1.world does not exist
import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderContext;
                                                        ^

ERROR in src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 15: package net.fabricmc.fabric.api.client.rendering.v1.world does not exist
import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderEvents;
                                                        ^

ERROR in src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 59: cannot find symbol
    private static void renderIslands(WorldRenderContext context) {
                                      ^
  symbol: class WorldRenderContext
  location: class FakeRenderDistanceClient

ERROR in src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 34: package WorldRenderEvents does not exist
        WorldRenderEvents.END_MAIN.register(FakeRenderDistanceClient::renderIslands);
                         ^

ERROR in   src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 59: cannot find symbol
      private static void renderIslands(WorldRenderContext context) {
                                        ^
  symbol: class WorldRenderContext
  location: class FakeRenderDistanceClient

ERROR in   src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 14: package net.fabricmc.fabric.api.client.rendering.v1.world does not exist
  import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderContext;
                                                          ^

ERROR in   src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 15: package net.fabricmc.fabric.api.client.rendering.v1.world does not exist
  import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderEvents;
                                                          ^

ERROR in   src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java at line 34: package WorldRenderEvents does not exist
          WorldRenderEvents.END_MAIN.register(FakeRenderDistanceClient::renderIslands);
                           ^


=== COMPILATION ERROR ANALYSIS ===

MISSING CLASSES:
  - WorldRenderContext
ACTION: Create these classes or check imports

FILES TO INVESTIGATE:
  - src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java
  -   src/main/java/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariOct 17 at 12:01 pm 2
  1. Keep the verified 1.21.11 world-render API imports.

  2. Add Fabric API explicitly to the split client source set so the render event classes are available during client compilation.

Updated build.gradle to add Fabric API to the split client source set. The WorldRenderContext and WorldRenderEvents imports match the mounted 1.21.11 API; the reported errors indicate those classes were missing from the client compile classpath.

Recompile the project in Kodari, then download the JAR if the build succeeds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
README.md
settings.gradle
Code
6 286
src/client/java/com/kodari/fakerenderdistance/FakeRenderDistanceClient.java
package com.kodari.fakerenderdistance;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import java.util.Properties;
import java.util.Random;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderContext;
import net.fabricmc.fabric.api.client.rendering.v1.world.WorldRenderEvents;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.render.Camera;
import net.minecraft.client.render.RenderLayers;
import net.minecraft.client.render.VertexConsumer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.Vec3d;
import net.minecraft.world.World;

public final class FakeRenderDistanceClient implements ClientModInitializer {
    private static final float MIN_DRAW_DISTANCE = 160.0f;
    private static final float MIN_DRAW_DISTANCE_SQUARED = MIN_DRAW_DISTANCE * MIN_DRAW_DISTANCE;
    private static final Island[] ISLANDS = createIslands();
    private static boolean enabled = true;

    @Override
    public void onInitializeClient() {
        loadConfig();
        WorldRenderEvents.END_MAIN.register(FakeRenderDistanceClient::renderIslands);
    }

    private static void loadConfig() {
        Path path = FabricLoader.getInstance().getConfigDir().resolve("fakerenderdistance.properties");
        Properties properties = new Properties();

        try {
            Files.createDirectories(path.getParent());
            if (Files.exists(path)) {
                try (InputStream input = Files.newInputStream(path)) {
                    properties.load(input);
                }
            } else {
                properties.setProperty("enabled", "true");
                try (OutputStream output = Files.newOutputStream(path)) {
                    properties.store(output, "FakeRenderDistance configuration");
                }
            }
            enabled = Boolean.parseBoolean(properties.getProperty("enabled", "true").trim());
        } catch (IOException ignored) {
            enabled = true;
        }
    }

    private static void renderIslands(WorldRenderContext context) {
        if (!enabled) {
            return;
        }

        MinecraftClient client = MinecraftClient.getInstance();
        if (client.world == null || client.player == null || !client.world.getRegistryKey().equals(World.END)) {
            return;
        }

        Camera camera = client.gameRenderer.getCamera();
        Vec3d cameraPosition = camera.getCameraPos();
        float cameraX = (float) cameraPosition.x;
        float cameraY = (float) cameraPosition.y;
        float cameraZ = (float) cameraPosition.z;
        MatrixStack.Entry matrix = context.matrices().peek();
        VertexConsumer vertices = context.consumers().getBuffer(RenderLayers.debugQuads());

        for (Island island : ISLANDS) {
            float dx = island.centerX - cameraX;
            float dz = island.centerZ - cameraZ;
            if (dx * dx + dz * dz >= MIN_DRAW_DISTANCE_SQUARED) {
                island.draw(vertices, matrix, cameraX, cameraY, cameraZ);
            }
        }
    }

    private static Island[] createIslands() {
        int[] ringRadii = {240, 380, 570, 800, 1070, 1400, 1780};
        int[] islandCounts = {12, 16, 20, 24, 28, 32, 36};
        Random random = new Random(0x454e44524f434bL);
        List<Island> islands = new ArrayList<>(168);

        for (int ring = 0; ring < ringRadii.length; ring++) {
            int count = islandCounts[ring];
            double angleOffset = random.nextDouble() * Math.PI * 2.0;
            for (int index = 0; index < count; index++) {
                double angle = angleOffset + Math.PI * 2.0 * index / count + (random.nextDouble() - 0.5) * 0.14;
                float radius = ringRadii[ring] + (random.nextFloat() - 0.5f) * 70.0f;
                float centerX = (float) Math.cos(angle) * radius;
                float centerZ = (float) Math.sin(angle) * radius;
                float centerY = 48.0f + random.nextFloat() * 42.0f;
                float radiusX = 24.0f + random.nextFloat() * 30.0f;
                float radiusZ = radiusX * (0.65f + random.nextFloat() * 0.7f);
                int sides = 6 + random.nextInt(4);
                float rotation = random.nextFloat() * (float) (Math.PI * 2.0);
                islands.add(new Island(centerX, centerY, centerZ, radiusX, radiusZ, sides, rotation, random));
            }
        }

        return islands.toArray(Island[]::new);
    }

    private static void vertex(VertexConsumer vertices, MatrixStack.Entry matrix, float x, float y, float z, int red, int green, int blue) {
        vertices.vertex(matrix, x, y, z).color(red, green, blue, 255);
    }

    private static final class Island {
        private final float centerX;
        private final float centerY;
        private final float centerZ;
        private final float[] topX;
        private final float[] topY;
        private final float[] topZ;
        private final float[] bottomX;
        private final float[] bottomY;
        private final float[] bottomZ;
        private final int red;
        private final int green;
        private final int blue;

        private Island(float centerX, float centerY, float centerZ, float radiusX, float radiusZ, int sides, float rotation, Random random) {
            this.centerX = centerX;
            this.centerY = centerY;
            this.centerZ = centerZ;
            this.topX = new float[sides];
            this.topY = new float[sides];
            this.topZ = new float[sides];
            this.bottomX = new float[sides];
            this.bottomY = new float[sides];
            this.bottomZ = new float[sides];
            this.red = 102 + random.nextInt(28);
            this.green = 91 + random.nextInt(25);
            this.blue = 123 + random.nextInt(32);

            float undersideY = centerY - 18.0f - random.nextFloat() * 30.0f;
            for (int i = 0; i < sides; i++) {
                float angle = rotation + (float) (Math.PI * 2.0 * i / sides);
                float shape = 0.72f + random.nextFloat() * 0.48f;
                float xOffset = (float) Math.cos(angle) * radiusX * shape;
                float zOffset = (float) Math.sin(angle) * radiusZ * shape;
                this.topX[i] = centerX + xOffset;
                this.topY[i] = centerY + (random.nextFloat() - 0.5f) * 3.5f;
                this.topZ[i] = centerZ + zOffset;
                float undersideScale = 0.22f + random.nextFloat() * 0.2f;
                this.bottomX[i] = centerX + xOffset * undersideScale;
                this.bottomY[i] = undersideY + random.nextFloat() * 4.0f;
                this.bottomZ[i] = centerZ + zOffset * undersideScale;
            }
        }

        private void draw(VertexConsumer vertices, MatrixStack.Entry matrix, float cameraX, float cameraY, float cameraZ) {
            float relativeCenterX = centerX - cameraX;
            float relativeCenterY = centerY - cameraY;
            float relativeCenterZ = centerZ - cameraZ;

            for (int i = 0; i < topX.length; i++) {
                int next = (i + 1) % topX.length;
                int topShade = i % 3 == 0 ? 8 : 0;
                vertex(vertices, matrix, relativeCenterX, relativeCenterY, relativeCenterZ, red + topShade, green + topShade, blue + topShade);
                vertex(vertices, matrix, topX[i] - cameraX, topY[i] - cameraY, topZ[i] - cameraZ, red + topShade, green + topShade, blue + topShade);
                vertex(vertices, matrix, topX[next] - cameraX, topY[next] - cameraY, topZ[next] - cameraZ, red + topShade, green + topShade, blue + topShade);
                vertex(vertices, matrix, topX[next] - cameraX, topY[next] - cameraY, topZ[next] - cameraZ, red + topShade, green + topShade, blue + topShade);

                int sideShade = i % 2 == 0 ? 0 : 8;
                int sideRed = Math.max(0, red - 39 + sideShade);
                int sideGreen = Math.max(0, green - 37 + sideShade);
                int sideBlue = Math.max(0, blue - 34 + sideShade);
                vertex(vertices, matrix, topX[i] - cameraX, topY[i] - cameraY, topZ[i] - cameraZ, sideRed, sideGreen, sideBlue);
                vertex(vertices, matrix, topX[next] - cameraX, topY[next] - cameraY, topZ[next] - cameraZ, sideRed, sideGreen, sideBlue);
                vertex(vertices, matrix, bottomX[next] - cameraX, bottomY[next] - cameraY, bottomZ[next] - cameraZ, sideRed, sideGreen, sideBlue);
                vertex(vertices, matrix, bottomX[i] - cameraX, bottomY[i] - cameraY, bottomZ[i] - cameraZ, sideRed, sideGreen, sideBlue);
            }
        }
    }
}