Skip to content

About

A Minecraft mod that provides shared rendering code for configurable HUD elements.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

HudRendererLib

HudRendererLib is a client-side only library for rendering Heads-Up Display (HUD) elements in Fabric and NeoForge mods for Minecraft 26.3.

This mod integrates with Cloth Config's AutoConfig system, and uses annotations from it.

Features

  • Text-only and custom HUD elements, with configurable positions and anchors.
  • A HUD Element Editor for selecting and dragging elements registered by other mods.
  • Shared padding, text colour, text shadows, width and backdrop settings, with per-element overrides.
  • Vanilla HUD layer anchors on both loaders.

Top-right elements move down while the game's status effect icons are showing, so the two don't overlap.

Getting started

  • Minecraft 26.3 and Java 25.
  • Fabric Loader >=0.19.5 with Fabric API, or NeoForge >=26.3.0.99.
  • Cloth Config >=26.3.159 for your loader.
  • Install on the client, alongside a mod that uses HudRendererLib.
  • Mod Menu is optional on Fabric.

For mod developers, dependency setup and the public API examples are in docs/DEVELOPMENT.md.

Commands

  • /hudelementeditor or Numpad Plus - open the HUD Element Editor.
  • /hudrendererlibconfig or Numpad Enter - open the HudRendererLib Config Editor.
  • In the element editor: click to select, drag to move, arrow keys for precise movement, Ctrl for x5, Shift for x10, and Space to cycle alignment.
  • Save & Close saves positions; Undo & Close or Escape closes without saving.

Configuration

The config editor controls the screen margin, element padding, maximum text width, text shadows, text colour and backdrop opacity.

Show Vanilla Status Effects controls the game's status effect icons; the top-right adjustment settings control whether and how far elements move down for them.

A mod that draws its own status effect display can hide the vanilla icons only while that display is on.

Compatibility

An element is drawn under the same conditions as its layer on both loaders: F1 hides it with the rest of the HUD (except next to SLEEP and SUBTITLES, which the game keeps drawing), and it only appears when the game draws the layer, e.g. HEALTH_BAR only in survival/adventure mode and HOTBAR only outside spectator mode (SPECTATOR_MENU is the spectator hotbar).

Documentation

  • Development and API - dependency setup, config registration, text and custom elements, bounds for the editor, layer anchors and status effect integration.
  • Publishing - publishing configuration.
  • Release checklist - loader artifacts and release steps.
  • Modrinth - Modrinth publishing setup.

About

A Minecraft mod that provides shared rendering code for configurable HUD elements.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages