Mana Lib
by Ryukazan
Mana Lib is a NeoForge library that gives other mods a shared mana bar and mana data, so magic systems do not need to build their own.
What it does
Mana Lib draws a mana bar above the hunger bar, styled to match the vanilla interface, and adjusts its placement when the game's UI scale changes. The mana pool is stored directly on the player entity as standard NBT tags, and the values persist through logins with little overhead in the game loop. Players and mod authors can read or change the value with vanilla commands such as /data, or with external tools.
The library handles the backend work: storing, rendering and syncing mana, so a mod built on it can focus on spells, abilities and items. It is aimed at developers creating magic content, at server administrators who want custom items or command block systems in adventure maps, and at modpacks that need several magic mods to share one mana system. Mana Lib works with Native UI Integration. The mod is open source under the GNU Lesser General Public License v3.0 only, and has a source code repository, an issue tracker and a wiki. Files target 1.21.8 only, with NeoForge 1.0.0 published on 2025-12-07.
Key features
Mana bar above hunger
A clean mana bar is drawn above the hunger bar without manual layout work.
Customizable display
The bar's appearance can be adjusted, so it can be restyled to suit a modpack.
NBT-based mana data
Mana values are saved in the player's NBT tags and survive logins.
Shared mana for other mods
Provides a standardized data structure and visual interface that other mods can use to implement spells and abilities.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Magic mod development
Developers can build spells and abilities on the shared mana pool instead of writing their own UI and sync code.
Command block and adventure maps
Server administrators can change mana with vanilla commands to power custom items and command block systems.
Who it’s for: Mod developers building magic content, server administrators, and modpack authors who want several magic mods to use one mana bar and data model.
How it compares
Magic And More is a NeoForge mod for 1.21.4 under the MIT License, and it is not open source. Spells & Shields is open source under the MIT License and also supports Forge, with files for 1.18.2 – 1.21.1. Mana Lib is open source under the GNU Lesser General Public License v3.0 only and targets 1.21.8 only, so the versions do not overlap.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Mana Lib | NeoForge | 1.21.8 | Client and server | 2025-12-07 |
| Magic And More | NeoForge | 1.21.4 | Client and server | 2025-11-25 |
| Spells & Shields | Forge and NeoForge | 1.18.2 – 1.21.1 | Client and server | 2026-08-08 |
Questions
Does Mana Lib need another mod to run?
Does a server need Mana Lib installed?
Can server administrators change a player's mana without a mod?
In the catalog
Mana Lib is one of 3,514 Library mods on ModsFinder, and one of 1,449 Library mods for NeoForge. 17,695 mods support Minecraft 1.21.8.
Similar mods
What the author says
Mana Lib is a lightweight foundational library designed to standardize mana systems in Minecraft. It introduces a clean, vanilla-style Mana Bar displayed directly above the player's hunger bar. While this mod functions out of the box to display a mana pool, it is primarily designed as an API and Library for mod…
Official listing
- Modrinth page
- modrinth.com/mod/mana-lib
- Owner
- Ryukazan
- Published
- 2025-12-06
- Updated on Modrinth
- 2025-12-07
- Facts verified
- 2026-10-15
