bloodysfan

SOFT CLIENT — Minecraft 1.21.11 Custom HUD Mod

Act as an expert Minecraft Java developer and UI/UX designer. Build a complete, functional client-side mod named Soft Client for Minecraft Java Edition 1.21.11 using Fabric. Use the correct Fabric Loader, Fabric API, Yarn or officially supported mappings, and Java version required by the target Minecraft release. Verify dependency compatibility before implementation.

Use the provided screenshots as inspiration for a premium, customizable interface. Take inspiration from Lunar Client, Kalcium Client, and modern HUD editors, but create a unique design that does not directly copy their branding or layouts.

  1. Branding and Visual Design
  • Create an original, futuristic Soft Client logo featuring a stylish letter S.
  • Use a premium dark theme with black, charcoal, subtle gradients, and customizable accent colors.
  • Include clean icons, rounded module cards, smooth transitions, elegant typography, and subtle hover effects.
  • Make the UI responsive to different resolutions and GUI scales.
  • Ensure all visual elements remain crisp and readable.
  1. GUI Controls
  • Press Right Shift in a world or multiplayer server to open the Soft Client menu.
  • Press Right Shift again or Escape to close it.
  • Provide a configurable keybind in Minecraft Controls.
  • Ensure the menu does not interfere with normal gameplay or other keybinds.
  • Save settings automatically between sessions.
  1. Main Client Menu

Create an original interface containing:

  • Soft Client logo and profile section.
  • Categories: All, HUD, PvP, Render, Movement, Player, Utility, and Settings.
  • Searchable module cards with icons, descriptions, enable/disable toggles, and configuration buttons.
  • Favorites and category filters.
  • A dedicated HUD editor with live preview.
  • Preset management with save, load, rename, duplicate, import, and export.
  • Smooth animations for opening, closing, switching categories, and enabling modules.
  • Functional sliders, switches, dropdowns, color pickers, and text fields.
  1. Customizable HUD Modules

Implement the following as individual modules:

Information HUD

  • FPS Counter
  • Coordinates (X, Y, Z)
  • Direction and Compass
  • Biome Display
  • Clock
  • Ping Display
  • Server Information
  • Server TPS when reliable data is available
  • Day Counter
  • Memory Usage
  • Movement Speed
  • Keystrokes HUD (W, A, S, D, Space, Shift, Sprint)
  • CPS Counter for left and right clicks
  • Armor HUD with durability
  • Potion Effects
  • Item Durability
  • Target HUD using legitimately available target information
  • Custom Crosshair
  • Zoom
  • Toggle Sprint
  • Fullbright where supported
  • Attack Indicator
  • Block Overlay
  • Item Cooldown Indicator
  • Custom Text Widgets

Every module must be independently enabled or disabled and provide appropriate configuration options.

  1. Drag-and-Drop HUD Editor
  • Allow users to drag HUD elements anywhere on the screen.
  • Support resizing, scaling, alignment guides, grid snapping, and adjustable spacing.
  • Include background, border, opacity, font, and color customization.
  • Provide per-element visibility controls.
  • Include reset-position and reset-all buttons.
  • Prevent elements from moving outside the usable screen area unless explicitly allowed.
  • Support saving multiple named HUD layouts.
  • Make the editor smooth and responsive without causing FPS drops.
  1. PvP and Utility Features

Add configurable client-side utility modules where supported by Minecraft 1.21.11:

  • Keystrokes and CPS
  • Armor and potion status
  • Ping and FPS
  • Target information
  • Custom crosshair
  • Zoom
  • Sprint toggle
  • Damage indicators based on available client events
  • Cooldown indicators
  • Customizable status and information panels

Respect multiplayer server rules. Do not implement cheats, hidden automation, unauthorized combat advantages, or features that violate server policies.

  1. Themes and Customization
  • Dark, light, and customizable color themes.
  • Adjustable accent color and transparency.
  • Configurable animation speed.
  • Adjustable font sizes and HUD scale.
  • Rounded and square interface styles.
  • Optional background dimming and blur, with performance-friendly fallbacks.
  • Multiple profiles and configuration presets.
  • JSON-based configuration import/export.
  • Automatic saving and recovery from corrupted settings.
  1. Fabric and Version Compatibility

The mod must target Minecraft 1.21.11 exclusively unless additional versions are explicitly requested.

  • Verify the actual Fabric Loader and Fabric API versions compatible with Minecraft 1.21.11.
  • Use the correct Java toolchain and Minecraft mappings for that release.
  • Use Fabric keybinding APIs, client tick events, rendering events, and screen APIs compatible with the selected versions.
  • Follow the rendering architecture and resource-loading requirements of Minecraft 1.21.11.
  • Do not blindly reuse outdated rendering code from older Minecraft versions.
  • Include correct "fabric.mod.json", Gradle configuration, dependencies, entrypoints, and resource files.
  • Ensure the mod works alongside common Fabric client-side mods where possible.
  • Avoid unnecessary mixins; use supported Fabric APIs whenever practical.
  1. Performance and Stability
  • Optimize HUD rendering for smooth gameplay and minimal FPS impact.
  • Avoid unnecessary per-frame calculations and object allocations.
  • Ensure correct cleanup of rendering resources.
  • Handle joining servers, switching worlds, changing GUI scale, and disconnecting safely.
  • Prevent crashes and broken layouts caused by missing data or incompatible modules.
  • Ensure every button and setting performs its intended action.
  • Test module toggles, GUI navigation, HUD dragging, configuration saving, and keybind handling.
  1. Deliverables

Provide:

  1. Complete, organized Java source code.
  2. Full Gradle project and build files.
  3. Required Fabric metadata and resources.
  4. Original Soft Client logo and module icons.
  5. Functional HUD modules and editor.
  6. Default themes and configuration presets.
  7. Build and installation instructions.
  8. A compiled ".jar" file if the environment supports compilation.
  9. Testing results and a clear list of any incomplete features.

Final Objective

Create Soft Client for Minecraft Java 1.21.11 Fabric as a premium, original, fully functional HUD customization mod. Its menu should feel smooth and polished, with a unique identity, responsive module cards, extensive customization, and reliable configuration persistence.

Do not deliver only a visual mockup. Implement the actual functionality, compile against verified dependencies, fix build errors, and test the finished mod before claiming it works. Never invent dependency versions or claim successful compilation without verification.

Kodari AI
KodariOct 27 at 2:50 am 7
SoftClientHud
A Fabric client-side mod for Minecraft 1.21.11 that provides a premium, customizable HUD overlay. Features a polished settings menu opened via Right Shift, featuring searchable module cards with categories like HUD, PvP, Render, and Utility. Includes drag-and-drop HUD editor with live preview, customizable themes, and over 20 independent modules such as FPS counter, coordinates, keystrokes, armor status, custom crosshair, zoom, and toggle sprint. Supports multiple profiles, JSON import/export, and automatic settings persistence.
  1. Bootstrap the Fabric 1.21.11 project and verified dependencies.

  2. Build the owo-ui module menu, config persistence, and Right Shift binding.

  3. Add independently configurable HUD widgets and a drag-to-position editor, then package resources.

Created the Soft Client Fabric 1.21.11 project with the client-only source set, Java 21, Yarn mappings, and owo-lib dependency metadata.

  • Menu: Right Shift opens/closes it in a world. It includes searchable module cards, category filters, favorites, accent and opacity controls, and JSON import/export plus named preset save/load/duplicate/rename.

  • HUD editor: Drag enabled widgets, use the grid snap and screen guides, reset positions, and save layouts between sessions.

  • Implemented widgets/utilities: FPS, coordinates, direction, biome, world clock, ping, day count, memory, movement speed, keystrokes, CPS, armor points, potion effects, custom crosshair, hold-to-zoom, toggle sprint, and custom text.

  • Not implemented: Server TPS/server details, target and damage HUDs, item durability/cooldowns, fullbright, block overlay, attack indicator, per-widget resizing/scaling, and detailed per-widget styling.

  • Build/testing: I could not run a compile or game test here, so the project is not verified and no compiled JAR is included. To build it in Kodari: click Compile (phone: ⋮ → Compile Project), click Compile in the window, then click Download on the successful build. The download bundles owo-lib; Fabric API is also a dependency.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
13 1,121
src/client/java/dev/kodari/softclient/SoftClient.java
package dev.kodari.softclient;

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.minecraft.client.MinecraftClient;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import net.minecraft.util.Identifier;

public final class SoftClient implements ClientModInitializer {
    public static final String MOD_ID = "softclient";
    public static KeyBinding menuKey;
    public static KeyBinding zoomKey;
    public static KeyBinding sprintToggleKey;

    @Override
    public void onInitializeClient() {
        SoftConfig.load();
        KeyBinding.Category category = KeyBinding.Category.create(Identifier.of(MOD_ID, "main"));
        menuKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.softclient.menu", InputUtil.GLFW_KEY_RIGHT_SHIFT, category));
        zoomKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.softclient.zoom", 67, category));
        sprintToggleKey = KeyBindingHelper.registerKeyBinding(new KeyBinding("key.softclient.sprint_toggle", 86, category));
        SoftHud.register();
        ClientTickEvents.END_CLIENT_TICK.register(SoftClient::onEndTick);
    }

    private static void onEndTick(MinecraftClient client) {
        while (menuKey.wasPressed()) {
            if (client.currentScreen instanceof SoftMenuScreen || client.currentScreen instanceof SoftHudEditorScreen) {
                client.setScreen(null);
            } else if (client.player != null) {
                client.setScreen(new SoftMenuScreen());
            }
        }

        if (sprintToggleKey.wasPressed() && SoftConfig.enabled(SoftModule.SPRINT)) {
            SoftConfig.data.sprintToggled = !SoftConfig.data.sprintToggled;
            SoftConfig.save();
        }

        SoftHud.tick(client);

        if (client.player != null && SoftConfig.enabled(SoftModule.SPRINT)
                && SoftConfig.data.sprintToggled && client.options.forwardKey.isPressed()) {
            client.player.setSprinting(true);
        }
    }
}