Sharky

i want to create a minecraft 1.12.1 fabric client. i want an aesthetically pleasing clickgui. for the logic i want a stoarge finder mudule that highlights chests, shulkers, and dropppers. i also want a module called chunk finder which highlights a chunk if there are grown amethyst shards in it. i want a lot of customization on these modules to adjust opacity of the outline, color, different modes

Kodari AI
KodariOct 17 at 8:46 am 5
ClickGUIUtilitySuite
A Fabric client mod for Minecraft 1.12.1 featuring an aesthetically pleasing click-based GUI. Includes a Storage Finder module that highlights chests, shulkers, and droppers with customizable outline opacity and color. Also features a Chunk Finder module that highlights chunks containing grown amethyst shards, with adjustable highlight modes and visual customization options for both modules.

Plan:

  1. Set up a Fabric client project for the available Minecraft 1.21.11 target (Fabric does not support 1.12.1).

  2. Add configurable storage and mature-amethyst chunk highlighting.

  3. Build an owo-ui click GUI for toggles, colors, opacity, render modes, and scan range.

Created the Fabric client mod for the available Minecraft 1.21.11 target; this workspace does not target 1.12.1.

  • Press O to open the owo-ui click GUI.

  • Storage Finder highlights chests, trapped chests, shulker boxes, and droppers.

  • Amethyst Chunk Finder outlines chunks containing mature amethyst clusters.

  • Each module has its own enable toggle, color picker, opacity, scan range (1–8 chunks), and Outline / Fill / Outline + fill modes.

  • The scanner checks loaded chunks only. GUI settings currently reset to defaults when the game restarts.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
11 642
src/client/java/com/kodari/finder/FinderClient.java
package com.kodari.finder;

import com.kodari.finder.client.FinderRenderer;
import com.kodari.finder.client.FinderScanner;
import com.kodari.finder.client.FinderScreen;
import com.kodari.finder.client.FinderSettings;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.fabricmc.fabric.api.client.rendering.v1.hud.HudElementRegistry;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.util.Identifier;

public final class FinderClient implements ClientModInitializer {
    public static final String MOD_ID = "finder";

    private static final FinderSettings SETTINGS = FinderSettings.INSTANCE;
    private static final FinderScanner SCANNER = new FinderScanner();
    private static final KeyBinding OPEN_GUI = KeyBindingHelper.registerKeyBinding(new KeyBinding(
            "key.finder.open",
            79,
            KeyBinding.Category.create(Identifier.of(MOD_ID, "general"))
    ));

    private int scanTicks;

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(this::onEndTick);
        HudElementRegistry.addLast(Identifier.of(MOD_ID, "highlights"),
                (context, tickCounter) -> FinderRenderer.render(context, SCANNER, SETTINGS));
    }

    private void onEndTick(MinecraftClient client) {
        while (OPEN_GUI.wasPressed()) {
            client.setScreen(new FinderScreen(SETTINGS));
        }

        if (++this.scanTicks < 20) {
            return;
        }
        this.scanTicks = 0;

        if (client.world == null || client.player == null) {
            SCANNER.clear();
            return;
        }

        SCANNER.scan(client.world, client.player.getBlockX() >> 4, client.player.getBlockZ() >> 4, SETTINGS);
    }
}