HomeJavaModsPentamana
Pentamana
Pentamana — screenshot 1

Pentamana

Pentamana is a library adds non-registered mana status for living entities.

Compound data: Parent tag.
 |- Float mana: Any
 \- Float mana_capacity: Any

Manabar.png

Configuration

config/pentamana/server.json:

{
  "manaCapacityBase": 20.0,
  "manaRegenerationBase": 0.0625
}

config/pentamana/client.json:

{
  "manaBarOffsetX": 0,
  "manaBarOffsetY": -69,
  "manaBarDirection": "right",
  "manaBarAlignment": "middle",
  "manaBarMaxStars": 20
}

Command

Server Command

The commands below require premission level 2 to execute.

Client Command

Tutorial

Codes in this tutorial are licenced under CC-0.

Installation

gradle.properties:

pentamana_version=2.0.0-beta.14

build.gradle:

repositories {
    exclusiveContent {
        forRepository {
            maven {
                name = "Modrinth"
                url = "https://api.modrinth.com/maven"
            }
        }
        filter {
            includeGroup "maven.modrinth"
        }
    }
}

dependencies {
    implementation "maven.modrinth:pentamana:${project.pentamana_version}"
}

Consume mana

livingEntity.consumeMana(1.234f) // Return true if successful.

Change how mana capacity is calculated

ManaEvents.CALCULATE_CAPACITY.register((livingEntity, capacity) -> {
    float f = capacity.floatValue() // Base value.
    // TO-DO: Do your modifies to f.
    capacity.setValue(f);
    return InteractionResult.PASS;
})

Pentamana Extra uses this.

Get Casting Damage

livingEntity.getCastingDamageAgainst(entity, 1.234f)
Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more