Resource Bar API
by TheRedBrain
Resource Bar API is a Fabric library for building complete resource bar HUD elements, such as a mana bar, from a single set of parameters.
What it does
Other mods use the API to set up a full resource bar on the HUD. A method draws the element according to the parameters a mod passes in, and a mod can decide under which conditions the element is rendered. Required dependency: Fzzy Config. The code is open source under the MIT License, and the environment is client and server, so the server and every player need it. Files cover game versions 1.20.1, 1.21.1, 1.21.10, 1.21.11, 26.1, 26.1.1 and 26.1.2, with 4.0.0 for 26.1.2 as the latest file.
Key features
HUD resource bars
Mods can set up a complete resource bar on the HUD, with the example of a mana bar.
Parameterized drawing
A provided method draws the bar element from the parameters a mod gives it.
Conditional rendering
A mod decides under which conditions the bar element is rendered.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Required by 4 mods
How it compares
Tango's Dynamic Hud Lib is a Fabric library for 1.21.10 – 26.2, client-side only, released under the GNU General Public License v3.0 only. Rules4Worlds is a server-side Fabric library for 1.19 – 1.21.1 under the Apache License 2.0.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Resource Bar API | Fabric | 1.20.1 – 26.1.2 | Client and server | 2026-04-15 |
| Tango's Dynamic Hud Lib | Fabric | 1.21.10 – 26.2 | Client-side only | 2026-07-24 |
| Rules4Worlds | Fabric | 1.19 – 1.21.1 | Server-side only | 2024-08-17 |
Questions
Does Resource Bar API need Fzzy Config?
Must the server run Resource Bar API?
In the catalog
Resource Bar API is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,189 mods support Minecraft 26.1.2.
More from TheRedBrain
Similar mods
What the author says
A small java API mod that allows mods to easily set up a complete resource bar HUD element. This API does not do all the work. All this API does is provide a method that draws the HUD element according to the given parameters.
Official listing
- Modrinth page
- modrinth.com/mod/resource-bar-api
- Owner
- TheRedBrain
- Published
- 2024-11-21
- Updated on Modrinth
- 2026-04-15
- Facts verified
- 2026-10-15
