Download ManaBarLib — Minecraft Mods — MetaMods
ManaBarLib

ManaBarLib

Active

Downloads

0

Last update

1 year ago

Versions

1.20.1
Client and server
Forge
Neoforge
Adventure
Game mechanics
Libraries
Magic
Utils

ManaBarLib - Customizable Mana System

Mana in game demonstration

ManaBarLib provides mod developers with tools for creating customizable mana indicators that can be easily integrated into your projects. The library offers functionality that simplifies the implementation of mana systems in Minecraft modifications.

Animated mana bar demonstration

Controls and Commands

The library supports management through in-game commands:

  • /cdtoggle <true/false> - Enables or disables the mana bar display
  • /cdset <percentage> - Sets the mana level to the specified percentage (e.g., 10)
  • /cdwait <wait> - Sets the number of ticks before restoring 1% of mana
  • /cdget - Shows the current mana percentage in chat

Technical Details

The player's current mana indicator is accessible through the NBT tag "cooldown_val", which stores a decimal value ranging from 0.0 to 100.0.

Current Limitations and Development Plans

  • Mana regeneration rate is the same for all players, not individual
  • When using decimal values in the /cdset command, it's possible to exceed the maximum value to 100.9% instead of the standard limit of 100%
  • Lack of configurability for the mana bar positioning in settings
Project members
MinoBanana

MinoBanana

Developer

Created: 7 Jul 2024

ID: 26309