HUD Lib
by wooferz
HUD Lib is a Fabric library for the HUD elements other mods draw on screen, letting each one be moved, anchored and configured in one editor.
What it does
Other mods use HUD Lib to register their own HUD elements, which then gain repositioning, anchoring and configuration without extra code. Three catalog mods already depend on it, including Armor HUD, Status Effect HUD and Generic HUD. Drawing a element takes a DrawContext call at an X and Y coordinate, while the library handles where the screen is rendered.
Pressing RIGHT SHIFT, or a rebound key, opens the editor, where elements can be dragged, pinned to a screen corner so they keep their place when the window resizes, or disabled. A settings screen, built with YetAnotherConfigLib, lets players configure each element and reset positions. Holding CTRL stops snapping, and the settings button can be hidden. The mod is client-side only and needs no server install. It is released under the MIT License and is open source, with the source code and issue tracker public. Fabric API, Mod Menu and YetAnotherConfigLib (YACL) are required, and the Generic HUD options come from the Generic HUD mod.
Key features
Element registration API
Other mods register their own HUD elements, which the library then positions and displays on screen.
Editor with snapping
The editor moves elements, snaps them to a grid and stays hidden until opened, while CTRL disables snapping.
Screen corner anchoring
Elements can be anchored to a corner, such as the top right, so they keep their place as the screen size changes.
Configuration screen
A settings screen built with YetAnotherConfigLib lets players disable elements or reset their positions.
Gallery
Compatibility
Latest build for each game version and loader.
1.21.x12 of 12 versions with builds
1.20.x4 of 4 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 3
Required by 3 mods
Questions
Does HUD Lib need Fabric API?
Does HUD Lib have to be installed on the server?
Which game versions does HUD Lib support?
In the catalog
HUD Lib is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 19,862 mods support Minecraft 1.21.11.
More from wooferz
Similar mods
What the author says
This mod is a library for other mods to register their own HUD Elements. These HUD Elements has inbuilt repositioning, anchoring, and configuration. They can all be edited after pressing RIGHT SHIFT (Can be rebinded in Key Binds). This mod has no default elements, you will need a mod such as Generic Hud (mentioned…
Official listing
- Modrinth page
- modrinth.com/mod/hud-lib
- Owner
- wooferz
- Published
- 2024-11-12
- Updated on Modrinth
- 2025-12-07
- Facts verified
- 2026-10-15
