Pentamana

Pentamana

A mana API providing mana calculation hooks and mana rendering.

by
1.4K Downloads
fabriclibrarymagic
Rent Server with this Mod

Screenshots

Manabar, 27/40 MP

About this Mod

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.

  • /mana get Print mana supply. Returns mana supply in point.
  • /mana set Set mana supply. Returns modified mana supply in point.
  • /mana add Add mana supply. Returns modified mana supply in point.
  • /mana subtract Subtract mana supply. Returns modified mana supply in point.
  • /pentamana reload Reload server config file.
  • /pentamana set ... <...> Set server config and save to config file.
  • /pentamana reset [...] Set server config to default and save to config file.

Client Command

  • /manabar set ... <...> Set manabar config and save to config file.
  • /manabar reset [...] Set manabar config to default and save to config file.

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;
})
  • ManaEvents.CALCULATE_CAPACITY
  • ManaEvents.CALCULATE_REGENERATION
  • ManaEvents.CALCULATE_CONSUMPTION
  • ManaEvents.CALCULATE_DAMAGE

Pentamana Extra uses this.

Get Casting Damage

livingEntity.getCastingDamageAgainst(entity, 1.234f)

Available Versions

Pentamana 2.0.0-beta.14beta
MC 26.1, 26.1.1, 26.1.2fabric
May 27, 2026

How to Install Pentamana on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (26.1.2).

3

Install Mod

Open the mod browser in the dashboard and search for "Pentamana". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

26.1.2, 26.1.1, 26.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Pentamana 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 Pentamana compatible with fabric?

Pentamana officially supports fabric for Minecraft 26.1.2, 26.1.1, 26.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Pentamana – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Pentamana 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.

Rent Modded Server

Install Pentamana with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 or later
Server-side
Required

Supported Versions

26.1.226.1.126.1