Tags
Creators
Details
1.0.0
Compatibility
Changes
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
maxmanais set to0, 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
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:KlDkoRnq:AXqKP3eJ"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:KlDkoRnq:AXqKP3eJ"
}

