Back to mods
Mana Attributes project artwork

CurseForge · Minecraft mod

Mana Attributes

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Mana Attributes release should I use?

Updated 3 months ago
Latest stable file mana-attributes-4.0.0.jar
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric

Mana Attributes mana-attributes-4.0.0.jar targets 26.1, 26.1.1, 26.1.2 with Fabric. The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server. All 4 required mods have matching files.

Where it goes

Is Mana Attributes required on the client, server, or both?

The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Mana Attributes mana-attributes-4.0.0.jar need?

mana-attributes-4.0.0.jar. Change the file and its required mods may change too.

All 4 required mods have matching files

Install Fzzy Config, Fabric API, Resource Bar API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

3 listed on this file 1 pulled in by one of those mods
Fzzy Config Needed by Mana Attributes mana-attributes-4.0.0.jar
required
Matching file found Matched file: fzzy_config-0.7.6+26.1
Fabric API Needed by Mana Attributes mana-attributes-4.0.0.jar
required
Matching file found Matched file: [26.1.2] Fabric API 0.155.2+26.1.2
Resource Bar API Needed by Mana Attributes mana-attributes-4.0.0.jar
required
Matching file found Matched file: resource-bar-api-4.0.0.jar
Fabric Language Kotlin Needed by Fzzy Config
pulled in
Matching file found Matched file: Fabric Language Kotlin 1.13.13+kotlin.2.4.10

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Mana Attributes without breaking your instance.

Built for Mana Attributes mana-attributes-4.0.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use mana-attributes-4.0.0.jar. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fzzy Config, Fabric API, Resource Bar API, Fabric Language Kotlin first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

  3. 03

    Put it on the correct side

    The project page does not say whether it belongs on the client. The project page does not say whether it belongs on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside mana-attributes-4.0.0.jar. It opens that exact file at the source.

About this project

What does Mana Attributes add?

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
}

Project description from CurseForge.

Pick your setup

Mana Attributes by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

8 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Mana Attributes versions and loaders

30 of 30 releases match

Looking for an older file? The official CurseForge project page is in Resources.