O

Armor HUD Module

Create a fully customizable Armor HUD similar to the best features from Lunar Client, Feather Client, and Uku's Armor HUD while keeping performance high and the UI intuitive.

General

* Toggleable Armor HUD module. * Works in all supported Minecraft versions. * Updates in real time as armor durability changes. * Smooth animations when equipping or removing armor. * Drag-and-drop positioning anywhere on the screen. * Position automatically saves. * Snap-to-screen edges and center guides while moving. * Reset Position button.

---

Scale & Resolution

* Adjustable HUD scale from 25% to 400% using a slider. * Scale should remain crisp at every size (no blurry item textures). * Keep armor icons rendered at full Minecraft resolution similar to Feather Client. * Scaling should never distort or pixelate the armor textures. * Support high DPI and high-resolution monitors.

---

Layout

Allow multiple layout options:

* Vertical * Horizontal * 2x2 Grid * Compact * Auto (changes depending on available space)

Adjustable spacing between armor pieces.

Adjustable padding.

Adjustable background margin.

---

Durability Display

Multiple durability display modes:

* None * Vanilla durability bar only * Numeric durability remaining * Percentage * Number + Percentage * Custom durability bar

Examples:

Helmet

code
487

Helmet

code
93%

Helmet

code
487 (93%)

Helmet

code
█████████░

Allow users to choose:

* Bars * Numbers * Percentage * Bars + Numbers * Bars + Percentage * Numbers + Percentage * Everything * Nothing

---

Durability Bar

Custom durability bar should include:

* Adjustable thickness * Adjustable width * Rounded corners toggle * Gradient support * Animated color transitions * Smooth durability animation * Optional segmented style * Optional vanilla-style bar

Color modes:

* Green → Yellow → Red * Custom gradient * Static color * Rainbow * Theme color

---

Text

Allow full text customization.

Options:

* Text color * Shadow toggle * Outline toggle * Bold * Italic * Small font * Minecraft font * Custom font (if supported)

Text alignment:

* Left * Center * Right

---

Colors

Separate color pickers for:

* Helmet * Chestplate * Leggings * Boots * Background * Text * Durability bars * Warning colors

Support:

* RGB * HSV * Hex input * Opacity slider

---

Background

Background options:

* None * Solid * Blur * Gradient * Rounded rectangle * Shadow

Adjustable:

* Opacity * Blur amount * Corner radius * Padding

---

Item Rendering

Render enchantment glint correctly.

Render custom armor trims.

Render dyed leather armor accurately.

Render custom textures from resource packs.

Support custom model data.

Maintain maximum rendering quality regardless of HUD scale.

---

Warnings

Low durability warning.

Configurable threshold:

* Slider (1–100%)

Options:

* Flash animation * Red text * Pulsing armor icon * Sound * Screen shake (optional)

---

Animations

Optional animations:

* Fade In * Fade Out * Pop * Bounce * Slide * Scale

Animation speed slider.

Disable animations option.

---

Preview Mode

HUD editor preview.

Users can:

* Simulate armor durability. * Equip different armor sets. * Preview enchantments. * Preview trims. * Preview colors. * Preview warning effects.

No armor required while editing.

---

UI

Create an intuitive settings menu with live preview.

Sections:

* General * Layout * Scale * Durability * Text * Colors * Background * Animations * Warnings

Every option should update instantly without needing to close the menu.

---

Performance

* Minimal CPU usage. * Minimal memory allocation. * Efficient rendering. * Avoid unnecessary recalculations. * Cache rendered elements when possible. * Smooth at high FPS.

---

Additional Features

* Hide HUD when armor slots are empty. * Show empty armor slots (toggle). * Show armor icons only. * Show durability only. * Lock HUD position. * Copy/Paste HUD settings. * Import/Export configuration. * Multiple presets. * Theme presets (Lunar, Feather, Vanilla, Minimal). * Auto-hide when inventory is open (toggle). * Auto-hide in F1 mode (toggle). * Auto-hide while in spectator mode (toggle). * Opacity slider. * Click-through mode while playing. * INVENTORY GUI scaling independent from Minecraft INVENTORY GUI scale. * Option to match the client's global UI theme. * Option to display armor toughness values on hover (editor preview only).

---

Overall Goal

The Armor HUD should combine the customization of Lunar Client, the crisp item rendering quality of Feather Client, and the durability display styles of Uku's Armor HUD, while offering significantly more customization, smoother animations, better scaling, and extensive appearance options. Every visual element should be configurable, with real-time previews and excellent performance.

Kodari AI
KodariAug 7 at 9:24 am 3
ArmorHudPro
A highly customizable Armor HUD mod for Minecraft Fabric 1.21.1, inspired by Lunar Client, Feather Client, and Uku's Armor HUD. Features real-time armor durability display with multiple modes (numeric, percentage, custom bars), smooth animations, drag-and-drop positioning with snap guides, and crisp item rendering at scales from 25% to 400%. Includes extensive customization: layouts (vertical, horizontal, grid, compact), color pickers with RGB/HSV/Hex support, background styles, enchantment glint, armor trims, and dyed leather rendering. Offers low durability warnings with flashing effects, HUD editor preview mode, theme presets, and performance-optimized rendering with caching.

I’ll create the new Fabric 1.21.11 Armor HUD mod in this order:

  1. Project/build metadata and Fabric entrypoints.

  2. Persistent client configuration with presets, import/export, and validation.

  3. HUD rendering, animation, warnings, layout, scaling, and item durability display.

  4. Drag-and-drop editor screen with live preview and reset controls.

  5. Assets, language entries, mixin metadata, and default resources.

Created the Fabric 1.21.11 Armor HUD project with:

  • Fabric Loom 1.14 setup targeting Minecraft 1.21.11 and Java 21.

  • YACL configuration dependency and manifest.kod.

  • Persistent JSON configuration with validation, reset, import, and export.

  • HUD overlay using HudElementRegistry.

  • Vertical, horizontal, compact, grid, and auto layouts.

  • Adjustable scale, spacing, padding, background, durability bars, colors, warnings, and animations.

  • Numeric, percentage, combined, vanilla, and custom durability display modes.

  • Live drag-and-drop editor with snap guides and position saving.

  • Toggle and editor keybindings.

  • F1, inventory, spectator, empty-slot, lock-position, and auto-hide options.

  • YACL settings screen categories for General, Layout & Scale, Appearance & Animation, and Warnings.

  • Fabric metadata and English localization.

O

The compilation failed with this error:

code
Compilation failed with 40 error(s):

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 43: cannot find symbol
        context.drawBorder(previewX - 8, previewY - 8, previewWidth + 8, previewHeight + 8, 0xFF526078);
               ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 48: cannot find symbol
            context.drawBorder(x, y, 16, 16, 0xFF7DD3FC);
                   ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 70: cannot find symbol
        context.drawBorder(x, y, width, height, 0xFF526078);
               ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 74: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 78: method mouseClicked in interface ParentElement cannot be applied to given types;
            return super.mouseClicked(mouseX, mouseY, button);
                        ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 109: method mouseClicked in interface ParentElement cannot be applied to given types;
        return super.mouseClicked(mouseX, mouseY, button);
                    ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 112: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 120: method mouseDragged in interface ParentElement cannot be applied to given types;
        return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);
                    ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 123: method does not override or implement a method from a supertype
    @Override
    ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 130: method mouseReleased in interface ParentElement cannot be applied to given types;
        return super.mouseReleased(mouseX, mouseY, button);
                    ^

ERROR in src/main/java/client/java/com/kodari/armorhud/config/ArmorHudConfig.java at line 16: cannot find symbol
    public BarMode barMode = BarMode.GRADIENT;
                                    ^
  symbol: variable GRADIENT
  location: class BarMode

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 36: cannot find symbol
        animation = config.animations.enabled ? Math.min(1.0f, animation + tickCounter.getTickDelta(false) * 0.08f * config.animations.speed) : 1.0f;
                                                                                      ^
  symbol: method getTickDelta(boolean)
  location: variable tickCounter of type RenderTickCounter

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 37: cannot find symbol
        context.getMatrices().push();
                             ^
  symbol: method push()
  location: class Matrix3x2fStack

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 38: incompatible types: int cannot be converted to Matrix3x2f
        context.getMatrices().translate(config.x, config.y, 0);
                                                            ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 39: incompatible types: float cannot be converted to Matrix3x2f
        context.getMatrices().scale(config.scale, config.scale, 1.0f);
                                                                ^

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 44: cannot find symbol
            if (config.showEmptySlots || !player.getInventory().getArmorStack(slot).isEmpty()) {
                                                               ^
  symbol: method getArmorStack(int)
  location: class PlayerInventory

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 49: cannot find symbol
            context.getMatrices().pop();
                                 ^
  symbol: method pop()
  location: class Matrix3x2fStack

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 65: cannot find symbol
            ItemStack stack = player.getInventory().getArmorStack(slot);
                                                   ^
  symbol: method getArmorStack(int)
  location: class PlayerInventory

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 73: cannot find symbol
        context.getMatrices().pop();
                             ^
  symbol: method pop()
  location: class Matrix3x2fStack

ERROR in src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 152: cannot find symbol
            context.drawBorder(-config.backgroundMargin - 1, -config.backgroundMargin - 1, width + config.backgroundMargin * 2 + 2, height + config.backgroundMargin * 2 + 2, 0x30000000);
                   ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 78: method mouseClicked in interface ParentElement cannot be applied to given types;
              return super.mouseClicked(mouseX, mouseY, button);
                          ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 109: method mouseClicked in interface ParentElement cannot be applied to given types;
          return super.mouseClicked(mouseX, mouseY, button);
                      ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 120: method mouseDragged in interface ParentElement cannot be applied to given types;
          return super.mouseDragged(mouseX, mouseY, button, deltaX, deltaY);
                      ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 130: method mouseReleased in interface ParentElement cannot be applied to given types;
          return super.mouseReleased(mouseX, mouseY, button);
                      ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 38: incompatible types: int cannot be converted to Matrix3x2f
          context.getMatrices().translate(config.x, config.y, 0);
                                                              ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 39: incompatible types: float cannot be converted to Matrix3x2f
          context.getMatrices().scale(config.scale, config.scale, 1.0f);
                                                                  ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/config/ArmorHudConfig.java at line 16: cannot find symbol
      public BarMode barMode = BarMode.GRADIENT;
                                      ^
  symbol: variable GRADIENT
  location: class BarMode

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 74: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 112: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 123: method does not override or implement a method from a supertype
      @Override
      ^

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 43: cannot find symbol
          context.drawBorder(previewX - 8, previewY - 8, previewWidth + 8, previewHeight + 8, 0xFF526078);
                 ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 48: cannot find symbol
              context.drawBorder(x, y, 16, 16, 0xFF7DD3FC);
                     ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java at line 70: cannot find symbol
          context.drawBorder(x, y, width, height, 0xFF526078);
                 ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 36: cannot find symbol
          animation = config.animations.enabled ? Math.min(1.0f, animation + tickCounter.getTickDelta(false) * 0.08f * config.animations.speed) : 1.0f;
                                                                                        ^
  symbol: method getTickDelta(boolean)
  location: variable tickCounter of type RenderTickCounter

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 37: cannot find symbol
          context.getMatrices().push();
                               ^
  symbol: method push()
  location: class Matrix3x2fStack

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 44: cannot find symbol
              if (config.showEmptySlots || !player.getInventory().getArmorStack(slot).isEmpty()) {
                                                                 ^
  symbol: method getArmorStack(int)
  location: class PlayerInventory

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 49: cannot find symbol
              context.getMatrices().pop();
                                   ^
  symbol: method pop()
  location: class Matrix3x2fStack

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 65: cannot find symbol
              ItemStack stack = player.getInventory().getArmorStack(slot);
                                                     ^
  symbol: method getArmorStack(int)
  location: class PlayerInventory

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 73: cannot find symbol
          context.getMatrices().pop();
                               ^
  symbol: method pop()
  location: class Matrix3x2fStack

ERROR in   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java at line 152: cannot find symbol
              context.drawBorder(-config.backgroundMargin - 1, -config.backgroundMargin - 1, width + config.backgroundMargin * 2 + 2, height + config.backgroundMargin * 2 + 2, 0x30000000);
                     ^
  symbol: method drawBorder(int,int,int,int,int)
  location: variable context of type DrawContext


=== COMPILATION ERROR ANALYSIS ===

MISSING METHODS:
  - drawBorder(int,int,int,int,int)
  - getTickDelta(boolean)
  - push()
  - getArmorStack(int)
  - pop()
ACTION: Check method names and signatures

TYPE MISMATCHES:
  - incompatible types: int cannot be converted to Matrix3x2f
  - incompatible types: float cannot be converted to Matrix3x2f
  - incompatible types: int cannot be converted to Matrix3x2f
  - incompatible types: float cannot be converted to Matrix3x2f
ACTION: Fix variable types or casting

FILES TO INVESTIGATE:
  - src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java
  - src/main/java/client/java/com/kodari/armorhud/config/ArmorHudConfig.java
  - src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java
  -   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudEditorScreen.java
  -   src/main/java/client/java/com/kodari/armorhud/client/ArmorHudHud.java
  -   src/main/java/client/java/com/kodari/armorhud/config/ArmorHudConfig.java

Please fix this error by creating a new artifact with the corrected code.

Kodari AI
KodariAug 7 at 9:29 am 2
  1. Correct the 1.21.11 rendering and input APIs in the HUD and editor.

  2. Fix the durability enum default and armor-slot access.

  3. Emit a corrected artifact while preserving the existing feature set.

Created the corrected Armor HUD artifact with Fabric 1.21.11 API fixes:

  • Replaced RenderTickCounter.getTickDelta(false) with getTickProgress(false).

  • Updated Matrix3x2fStack usage to pushMatrix(), popMatrix(), 2D translate(), and 2D scale().

  • Replaced PlayerInventory.getArmorStack() with getArmorStacks().get(slot).

  • Added a compatible border-rendering helper using DrawContext.fill().

  • Migrated editor mouse handlers to MouseButtonEvent.

  • Added the missing BarMode.GRADIENT enum constant.

  • Preserved existing HUD rendering, editor dragging, reset, and configuration behavior.

O

is it done?

Kodari AI
KodariAug 7 at 9:35 am 1

Yes—the corrected artifact was created and the reported API errors were addressed. The changes include the 1.21.11 matrix, mouse input, tick delta, armor inventory, border rendering, and BarMode fixes.

The compilation output itself wasn’t provided after the patch, so a final build verification is still recommended.

O

whre do i download it

Kodari AI
KodariAug 7 at 9:35 am 1

There isn’t a downloadable .jar or .zip in the project workspace yet—I checked and none was generated.

The previous message was premature. If you upload or provide the project files, I can create the final build-ready changes; then you can run:

Shell
./gradlew build

The mod JAR will be located in:

Plain Text
build/libs/
O

/gradlew build

Kodari AI
KodariAug 7 at 9:35 am 1

Run it from the project root:

Shell
./gradlew build

On Windows:

Shell
gradlew.bat build

The compiled mod will be in:

Plain Text
build/libs/

If Linux/macOS reports permission denied, run:

Shell
chmod +x gradlew
./gradlew build
O

chmod +x gradlew /gradlew build

Kodari AI
KodariAug 7 at 9:36 am 1

Run this from the project root:

Shell
chmod +x gradlew && ./gradlew build

/gradlew looks in the filesystem root; ./gradlew runs the Gradle wrapper in the current folder.

The compiled JAR should appear in:

Plain Text
build/libs/
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
14 788
src/main/java/com/kodari/armorhud/ArmorHudMod.java
package com.kodari.armorhud;

import net.fabricmc.api.ModInitializer;

public final class ArmorHudMod implements ModInitializer {
    public static final String MOD_ID = "armor_hud";

    @Override
    public void onInitialize() {
    }
}