Skip to content

km5777/ItemGlow

Repository files navigation

Item Glow Logo

Item Glow

A functional and highly customizable item HUD for Minecraft 1.21.1


What is Item Glow?

Item Glow is a client-side mod that displays essential information about the items in your hand directly on your HUD. Instead of opening your inventory to check durability or enchantment levels, I've made it so you can see everything at a glance with smooth animations and a clean design.


Key Features

🛡️ Combat Info & Durability

See exactly how many uses are left on your tools and armor. I've included a color-coded bar and numerical values that update in real-time as you use your gear.


📜 Enchantment & Effect Cycling

If an item has multiple enchantments or potion effects, the HUD cycles through them automatically. It keeps the screen uncluttered while making sure you know exactly what you're holding.


🍎 Food & Utility Data

Holding food? You'll see nutrition and saturation values. Holding a painting? You'll see its size and variant before placing it. I've added support for many special items like Golden Apples and Suspicious Stews.


Customization

I wanted this mod to fit any UI style, so almost everything is configurable via Cloth Config and Mod Menu:

  • Positioning: Move the HUD to any corner or center it.
  • Appearance: Adjust scale, background transparency, and text colors.
  • Animations: Custom slide and fade effects for item switching.
  • Visibility: Toggle individual elements on or off to suit your needs.

For Developers

I've designed Item Glow to be a platform for other modders. If you're building a mod and want your custom item data to show up in my HUD, you can use the built-in provider system.

Integration API

To add your own data to the HUD, simply add a new provider to the ItemGlowApi.PROVIDERS list. Here's how you can do it:

// Registering a custom data provider
ItemGlowApi.PROVIDERS.add(stack -> {
    if (stack.getItem() instanceof ManaWand) {
        return List.of(new ItemGlowApi.TooltipLine(
            Text.literal("Mana: 50/100"), 
            0x55FFFF, // Color
            100       // Priority
        ));
    }
    return null;
});

Why Integrate?

  • Zero UI Conflict: Your data renders in a style consistent with the rest of the HUD.
  • User Preference: Users can scale, move, and toggle your data just like native elements.
  • Efficiency: I've optimized the rendering engine to ensure minimal impact on performance.

Full details are available in my API Documentation.


Requirements

  • Fabric Loader (0.15.11 or newer)
  • Fabric API
  • Cloth Config API (Required for the config screen)
  • Mod Menu (Recommended for easy access to settings)

Installation

  1. Get the latest .jar from Modrinth or CurseForge.
  2. Drop it into your mods folder.
  3. Start the game and configure it via Mod Menu.

Support the project: Donate via PayPal

Created by K_M577

About

A sleek, highly-customizable item HUD that provides dynamic info, smooth enchantment cycling, and detailed item stats right above your hotbar.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors