Cole Bennett

Minecraft Java mod source code and installation instructions. Version: 1.21.1. Loader: Fabric. Include independently toggleable fully grown amethyst detection, cluster outlines, information HUD, and freecam, with configurable speed and keybinds. yes anti-cheat bypass.Also make the file into a jar so i can add it to my mods and playadd see through 3d levels of the different buds and make me able to toggle them on and off and make me able to see through the wall to find it

Kodari AI
KodariOct 12 at 9:48 pm 20
AmethystVision
AmethystVision is a Fabric mod for Minecraft 1.21.1 that enhances amethyst hunting. It features independently toggleable fully grown amethyst cluster detection with see-through 3D wireframe outlines, a configurable information HUD displaying coordinates and growth stages, and a freecam mode with adjustable speed and keybinds. The mod renders translucent 3D levels for different bud growth stages, allowing players to see through walls to locate amethyst clusters. All features are independently toggleable via configurable keybinds, with settings accessible through a config file. The mod includes anti-cheat bypass functionality for use on servers.

Plan:

  1. Build files: Gradle, fabric.mod.json, mixin config.

  2. Config, keybinds, and shared state (speed, scan radius, toggles).

  3. Amethyst scanner for buds and fully grown clusters.

  4. Through-wall 3D boxes and cluster outlines.

  5. Info HUD.

  6. Freecam, with mixins for camera, mouse look, and input.

  7. Client wiring, then install steps.

I’m not building the anti-cheat bypass. Freecam and see-through rendering are client-side features that many servers ban, so only use them where the server rules allow it.

I’m targeting Minecraft 1.21.11, not 1.21.1. The mounted source and verified build versions are 1.21.11, and I can’t check 1.21.1 APIs against it. I’ll look up every API first.The APIs are confirmed. One gap: there is no built-in no-depth-test debug pipeline, so the through-wall boxes need a custom pipeline. I’m checking that API and the remaining input and camera calls now.The custom pipeline is clear now. RenderLayer.of is package-private, so the layer factory has to live in net.minecraft.client.render. Next I’m confirming the remaining packages and signatures before writing code.The custom pipeline also needs the shared projection and transform uniforms, or the shader will not render correctly. I’m checking those snippets and a few last signatures before writing code.Plan:

  1. Build files (Gradle, fabric.mod.json, mixin config, lang file).

  2. Config, runtime state, and keybinds.

  3. Amethyst scanner for buds and fully grown clusters.

  4. Through-wall boxes, depth-tested outlines, and the info HUD.

  5. Freecam, with mixins for camera, mouse look, and input.

  6. Client wiring.

Every API is verified against the mounted source. Creating the project files now.

I built the mod as a Fabric client-only project, with one jar output. Two deviations from your request:

  • Version: 1.21.11, not 1.21.1. The mounted Fabric source and the build versions I’m working from are 1.21.11, and I couldn’t check 1.21.1 APIs against them. If you need 1.21.1 specifically, tell me and I’ll port it.

  • Anti-cheat bypass: not included. Its only purpose is to get past server anti-cheat, which I won’t build. Freecam and see-through rendering are also banned on many servers, so only use them where the server rules allow.

What’s in it

  • Amethyst detection (G): scans around you and draws see-through boxes over fully grown clusters, so they show through walls.

  • See-through bud levels: small, medium and large buds each get their own colored see-through box. Toggle them with Z (small), X (medium), C (large) and R (fully grown clusters).

  • Cluster and bud outlines (B): depth-tested wireframe boxes, so they stay hidden behind walls.

  • Info HUD (H): shows on/off state, per-level counts, freecam status and speed.

  • Freecam (J): WASD plus space and shift move the camera. Your character stays still. Speed changes with = and -.

  • Settings: all keys can be rebound under Controls → Amethyst Scope. Scan radius, scan interval, starting speed and which toggles start on are in config/amethystscope.json, created on first launch.

Known limit: freecam moves the camera only. Block breaking and interaction still act on your character’s position.

Get the jar

  1. Click Compile in the top bar (on phone, tap ⋮ → Compile Project).

  2. Click Compile in the window that opens.

  3. When it succeeds, click Download amethystscope.jar.

If the build fails, click Auto-fix in the chat.

Install

  1. Install Fabric Loader 0.19.2 and Fabric API 0.141.4+1.21.11 for Minecraft 1.21.11.

  2. Put amethystscope.jar in your .minecraft/mods folder.

  3. Launch the game with the Fabric profile.

I haven’t compiled this yet, so the first build will be the real check. The through-wall effect depends on a custom render pipeline I wrote against the 1.21.11 source. If the see-through boxes don’t appear, send me the build error or the game log.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
19 874
src/client/java/com/kodari/amethystscope/client/AmethystScopeClient.java
package com.kodari.amethystscope.client;

import com.kodari.amethystscope.client.hud.InfoHud;
import com.kodari.amethystscope.client.render.AmethystRenderer;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.minecraft.client.MinecraftClient;

public class AmethystScopeClient implements ClientModInitializer {
    @Override
    public void onInitializeClient() {
        ModState.load(ModConfig.load());
        ModKeys.register();
        AmethystRenderer.register();
        InfoHud.register();
        ClientTickEvents.END_CLIENT_TICK.register(AmethystScopeClient::onClientTick);
    }

    private static void onClientTick(MinecraftClient client) {
        if (client.world == null || client.player == null) {
            Freecam.stop();
            AmethystScanner.clear();
            return;
        }

        while (ModKeys.detection.wasPressed()) ModState.detection = !ModState.detection;
        while (ModKeys.outlines.wasPressed()) ModState.outlines = !ModState.outlines;
        while (ModKeys.hud.wasPressed()) ModState.hud = !ModState.hud;
        while (ModKeys.freecam.wasPressed()) Freecam.toggle(client);
        while (ModKeys.freecamFaster.wasPressed()) ModState.adjustSpeed(0.1);
        while (ModKeys.freecamSlower.wasPressed()) ModState.adjustSpeed(-0.1);
        while (ModKeys.smallBuds.wasPressed()) ModState.toggleStage(AmethystScanner.Stage.SMALL_BUD);
        while (ModKeys.mediumBuds.wasPressed()) ModState.toggleStage(AmethystScanner.Stage.MEDIUM_BUD);
        while (ModKeys.largeBuds.wasPressed()) ModState.toggleStage(AmethystScanner.Stage.LARGE_BUD);
        while (ModKeys.clusters.wasPressed()) ModState.toggleStage(AmethystScanner.Stage.CLUSTER);

        AmethystScanner.tick(client);
        Freecam.tick(client);
    }
}