Farbic 26.1.2 mod Toggles render distance to 32 by pressing k, this makes it easier to load chunks if you are playing on low chunks without going settings and if pressing k, again the chunk go back and a config what support mod menu mod and customize chunk toggle to 2-32
Let me read the relevant docs before writing any code.
I’ll build the RenderDistancer mod — a client-side Fabric mod that toggles render distance with K, with a YACL config screen accessible via ModMenu.
All files created. Here’s the project summary:
RenderDistancer — 11 files, 0 dependencies beyond Fabric API + YACL + ModMenu.
Architecture:
RenderDistancer.java— ModInitializer (common entrypoint, logs startup)RenderDistancerClient.java— Registers the K keybind viaKeyBindingHelper, listens onClientTickEvents.END_CLIENT_TICK. On press: saves current render distance, sets to config value. On second press: restores original. Shows action-bar messages on toggle.ModConfig.java— StatictoggleDistancefield (default 16), YACL screen builder with an integer slider (2-32, step 1)ModMenuIntegration.java— WiresModConfig::createScreenas the ModMenu config factorymanifest.kod— Bundles YACL and ModMenu JARs alongside the mod at download time
Key design decisions:
Client-only (
"environment": "client"in fabric.mod.json) — zero server-side code, pure client toggleTracks original distance per-session (not persisted) — natural behavior: each game session starts untoggled
Uses
client.options.getViewDistance()— the standard API that handles all chunk loading/unloading internallyConfig is a simple static int (no serializer needed) — the toggle distance is the only setting, and it’s trivial to re-enter if you want
can we make a 26.1.2 version too?
There’s no “26.1.2” version in the Fabric ecosystem — the current stable versions are Minecraft 1.21.11 with Fabric Loader 0.19.2 and Fabric API 0.141.4+1.21.11.
Could you clarify what you mean by “26.1.2”? Options:
Minecraft 1.21.2 (or 1.21.2/1.21.4) — an older version, I can backport
Fabric Loader 0.16.2 — different Loader version
Something else entirely?
If you tell me the exact Minecraft version + Fabric Loader version you need, I’ll set up the build.gradle and manifest accordingly.
minecraft fabric 26.1.2
I genuinely don’t know what “26.1.2” refers to in the Fabric/Minecraft ecosystem. There’s no Minecraft version, Fabric Loader version, or Fabric API version with that number.
Can you check what you’re looking at? Possible things it might be:
Minecraft 1.21.2 (or 1.21.1, 1.21)
Fabric Loader 0.16.2 (close pattern but different digits)
A mod version of something else?
A launcher version?
If you tell me the exact Minecraft version (e.g. 1.21, 1.21.1, 1.21.4, 1.20.1) and which Fabric Loader you’re using, I’ll build the backport for you right now.
package com.example.renderdistancer;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RenderDistancer implements ModInitializer {
public static final String MOD_ID = "renderdistancer";
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
@Override
public void onInitialize() {
LOGGER.info("Render Distancer initialized");
}
}