COWMODSКаталог модов

Mana Lib

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

830обновлён 7 дек. 2025 г.
ПриключенияБиблиотекиМагия

Описание

Mana Lib

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 developers and server admins. It provides a standardized visual interface and data structure, allowing other mods to implement spells, abilities, and magic systems without needing to handle UI rendering or data syncing from scratch.

Mana Bar Preview

(Note: Image is taken in version 1.0.0)


✨ Features

  • Native UI Integration: Renders a clean mana bar above the hunger bar, automatically adjusting to the game's UI scale.
  • NBT-Driven Data: Mana values are stored directly on the player entity using standard NBT tags.
  • Persistent & Lightweight: Data persists through logins and adds minimal overhead to the game loop.
  • Modpack Friendly: Designed to act as a bridge between different magic mods or command-block systems.

🛠️ For Developers & Admins

Mana Lib handles the backend logic for rendering and syncing mana, allowing you to focus on creating content.

Because Mana Lib utilizes standard NBT data on the player entity, you can easily modify a player's mana using vanilla commands (like /data), external tools, or your own mod code. This is perfect for server admins creating custom items or command block adventure maps.


📦 Integration

You are free to include Mana Lib in any modpack. No special permission is required, though credit is always appreciated!

If you are a developer looking to integrate this into your mod, simply add Mana Lib as a dependency in your build.gradle and utilize the NBT tags provided to sync your magic system's values.


🐛 Issues & Support

If you encounter any rendering glitches or compatibility issues, please report them using the Issues tab at the top of this page.

Галерея

Ingame Screenshot

Последние версии

Все версии →
release

Mana Lib 1.0.0

1.0.0
7 дек. 2025 г.83Minecraft: 1.21.8neoforge
Скачать
Что нового
# 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 * [**Report Bugs**](https://github.com/Ryukazan/Mana-Lib/issues/new/choose) * [**Join Discord**](https://discord.gg/aPk7Qs5d4H) * [**Source Code**](https://github.com/Ryukazan/Mana-Lib)