90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

ManaBarLib Overview:

ManaBar in game showcase

Currently ManaBarLib is controlled via NBT Tags in addition to commands. The following are the list of useful commands:

/cdtoggle <true/false> - This toggles the mana bar view on or off

/cdset <percent> - Set the mana bar to a given a percentage e.g. 10

/cdwait <wait> - The <wait> here refers to the number of ticks to wait before regenerating 1% of the mana

/cdget - Returns the current cooldown perccentage in chat

Animated Mana Bar showcase

Accessing a players current cooldown level can done through a number NBT tag stored with every player called "cooldown_val" and wil return a decimal value from 0.0 to 100.0

KNOWN ISSUES & FUTURE FEATURES:

  1. Cooldown rate currently applies to all players, rather than individual rates for each player
  2. Using decimal value within the /cdset command can result in the cooldown bar reaching 100.9% instead of capping off at 100%
  3. Missing configurable mana bar locations

Project members

MinoBanana

Member

Details

Licensed ARR
Published 4 months ago
Updated 4 months ago