跳到正文

Mana Lib

作者:Ryukazan

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

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

常见问题

Mana Lib 支持哪些 Minecraft 版本?

Mana Lib 支持 Minecraft Java 版 1.21.8,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。

Mana Lib 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分