Brice Mills

I want to create a 1.21.11 fabric client. I want an aesthetically pleasing dickgui similar to the reference above. For the logic I want a storagefinder module that highlights chests, shulkers, and droppers. I also want a module called spawnerfinder which also highlights spawners. I want a lot of customization on these modules to adjust opactiy of the outline, color, different modes. make it where i only have to do like 1 thing

Kodari AI
KodariOct 25 at 12:43 am 6
StorageSpawnerHighlighter
A Fabric 1.21.11 client mod providing an aesthetically pleasing GUI for finding storage containers and spawners. Features a StorageFinder module that highlights chests, shulkers, and droppers, plus a SpawnerFinder module for locating spawners. Both modules offer extensive customization including outline opacity, color selection, and multiple highlight modes (outline, fill, or both). The intuitive interface requires minimal user interaction, with a single keybind to toggle the GUI and per-module settings for personalized highlighting.

Plan:

  1. Build a Fabric 1.21.11 client mod with a single keybind to open the configuration GUI.

  2. Add configurable storage-finder and spawner-finder modules, including block targets, outline colors, opacity, and highlight modes.

  3. Render highlights in-world and provide persistent settings with sensible defaults.

Created Storage Sense, a client-side Fabric 1.21.11 mod. Press Right Shift to open the click GUI; both finders are enabled by default. Customize each finder’s range, opacity, color, and render style, and choose which storage blocks to highlight. Settings save to config/storagesense.properties.

It highlights nearby loaded chests, shulker boxes, droppers, and spawners without loading chunks.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
10 748
src/client/java/dev/kodari/storagesense/StorageSenseClient.java
package dev.kodari.storagesense;

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.world.WorldRenderEvents;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import net.minecraft.util.Identifier;
import org.lwjgl.glfw.GLFW;

public final class StorageSenseClient implements ClientModInitializer {
    private static final KeyBinding.Category CATEGORY = KeyBinding.Category.create(Identifier.of("storagesense", "general"));
    private static final KeyBinding OPEN_SETTINGS = KeyBindingHelper.registerKeyBinding(
            new KeyBinding("key.storagesense.open_gui", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_RIGHT_SHIFT, CATEGORY)
    );

    private FinderConfig config;
    private FinderRenderer renderer;

    @Override
    public void onInitializeClient() {
        var client = net.minecraft.client.MinecraftClient.getInstance();
        this.config = FinderConfig.load(client.runDirectory.toPath());
        this.renderer = new FinderRenderer(this.config);

        ClientTickEvents.END_CLIENT_TICK.register(clientInstance -> {
            this.renderer.tick(clientInstance);
            while (OPEN_SETTINGS.wasPressed()) {
                clientInstance.setScreen(new FinderScreen(this.config, clientInstance.runDirectory.toPath()));
            }
        });

        WorldRenderEvents.BEFORE_DEBUG_RENDER.register(this.renderer::render);
    }
}