promotional bannermobile promotional banner

Mana Lib

Adds a highly customizable mana bar to Minecraft, appearing above your hunger bar, which can be easily managed by NBT data.
Back to Files

mana_lib-1.0.0-neoforge-1.21.8.jar

File namemana_lib-1.0.0-neoforge-1.21.8.jar
Uploader
Vuserr0Vuserr0
Uploaded
Dec 7, 2025
Downloads
46
Size
30.9 KB
Mod Loaders
NeoForge
File ID
7302927
Type
R
Release
Supported game versions
  • 1.21.8

Curse Maven Snippet

NeoForge

implementation "curse.maven:mana-lib-1048063:7302927"

Learn more about Curse Maven

What's new

Mana Lib v1.0.0 - Initial Release

Welcome to the first release of Mana Lib! This library provides a standardized, lightweight backend for implementing magic and mana systems in Minecraft, featuring automatic HUD synchronization and gamerule management.

✨ Features

  • Universal Mana System: Implemented a unified NBT-based system to handle player mana states.
  • Dynamic HUD: Added a visual Mana Bar and numeric value display.
  • Smart Visibility: The Mana Bar automatically hides if a player's maxmana is set to 0, ensuring the screen remains clean for non-magic users.
  • LGPL-3.0 License: Full permission for inclusion in modpacks.

⚙️ Configuration (Gamerules)

Server admins can control the UI elements using the following new gamerules:

  • DISPLAY_MANA_BAR (Default: true) - Toggles the visual bar.
  • DISPLAY_MANA_VALUE (Default: true) - Toggles the numeric text (e.g., "Mana: 100/100").

👨‍💻 For Developers

To integrate your magic system, sync values to the player using these NBT tags:

  • "mana" (Int/Float)
  • "maxmana" (Int/Float)

🔗 Links

This mod has no additional files