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

About this Mod
Mana Attributes
This API adds a mana system controlled by entity attributes.
Default implementation
LivingEntities can have up to manaattributes:max_mana amounts of mana. Mana is regenerated by manaattributes:mana_regeneration every manaattributes:mana_tick_threshold ticks.
When mana is reduced, regeneration is stopped for manaattributes:mana_regeneration_delay_threshold ticks.
When mana is <= 0, regeneration is stopped for manaattributes:depleted_mana_regeneration_delay_threshold ticks.
manaattributes:reserved_mana describes the percentage amount of maximum mana that is currently not available.
Default attribute values
- manaattributes:max_mana: 0
- manaattributes:mana_regeneration: 0
- manaattributes:mana_tick_threshold: 20
- manaattributes:mana_regeneration_delay_threshold: 20
- manaattributes:depleted_mana_regeneration_delay_threshold: 60
- manaattributes:reserved_mana: 0
All default values for players can be set in the server config.
Customization
The client config allows customizing the HUD element.
Using the mana system
Java
Casting a "LivingEntity" to the "ManaUsingEntity" interface gives access to all relevant methods.
Data packs
Mana Attributes implements several data driven methods to interact with the current mana value of an entity.
- the "manaattributes:add_mana" enchantment effect allows adding a defined amount to the current mana
- the "manaattributes:mana_using_entity" entity sub predicate passes when the current mana of an entity matches
the defined range
Example
This enchantment reduces mana of the attacker by 2, as long as the attacker has at least 5 mana:
{
"anvil_cost": 1,
"description": {
"translate": "enchantment.manaattributes.test"
},
"effects": {
"minecraft:post_attack": [
{
"affected": "attacker",
"effect": {
"type": "manaattributes:add_mana",
"amount": {
"type": "minecraft:linear",
"base": -2.0,
"per_level_above_first": -2.0
}
},
"enchanted": "attacker",
"requirements": {
"condition": "minecraft:entity_properties",
"entity": "direct_attacker",
"predicate": {
"type_specific": {
"type": "manaattributes:mana_using_entity",
"mana_amount": {
"min": 5.0
}
}
}
}
}
]
},
"max_cost": {
"base": 25,
"per_level_above_first": 8
},
"max_level": 1,
"min_cost": {
"base": 5,
"per_level_above_first": 8
},
"slots": [
"hand"
],
"supported_items": "#minecraft:swords",
"weight": 5
}
Available Versions
How to Install Mana Attributes on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set fabric Loader
In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).
Install Mod
Open the mod browser in the dashboard and search for "Mana Attributes". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
26.1.2, 26.1.1, 26.1 (+5 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Mana Attributes server crashes on startup – what to do?
Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (26.1.2). You can switch loaders with one click in the panel.
Is Mana Attributes compatible with fabric?
Mana Attributes officially supports fabric for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Mana Attributes – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mana Attributes consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Mana Attributes with just one click on your server.