Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Mana Attributes

Mana Attributes

A small API that adds a mana system controlled by entity attributes.

4,363
5
Game Mechanics
Library
Magic
AboutGalleryChangelogVersions

Mana Attributes

This API adds a mana system controlled by entity attributes.

Default implementation

LivingEntities can have up to generic.max_mana amounts of mana. Mana is regenerated by generic.mana_regeneration every generic.mana_tick_threshold ticks.

When mana is reduced, regeneration is stopped for generic.mana_regeneration_delay_threshold ticks.

generic.reserved_mana describes the percentage amount of maximum mana that is currently not available.

When mana is <= 0, regeneration is stopped for generic.depleted_mana_regeneration_delay_threshold ticks.

Default attribute values

  • generic.max_mana: 0
  • generic.mana_regeneration: 0
  • generic.mana_tick_threshold: 20
  • generic.mana_regeneration_delay_threshold: 20
  • generic.depleted_mana_regeneration_delay_threshold: 60
  • generic.reserved_mana: 0

Customization

When the gamerule "naturalManaRegeneration" is true, players have 1 additional mana regeneration.

The client config allows customizing the HUD element.

API

Casting a "LivingEntity" to the "ManaUsingEntity" interface gives access to all relevant methods.

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.21.x
1.20.1

Platforms

Fabric

Supported environments

Client and server

Links

Report issues View source Join Discord server

Creators

TheRedBrain
TheRedBrain Member

Details

Licensed MIT
Published last year
Updated yesterday

Modrinth is open source.

main@a0bd011

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.