Pentamana
No reviews yet
A mana API providing mana calculation hooks and mana rendering.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
About
Description
Pentamana
Pentamana is a library adds non-registered mana status for living entities.
data: Parent tag.
|-
mana: Any
\-
mana_capacity: Any

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 getPrint mana supply. Returns mana supply in point./mana setSet mana supply. Returns modified mana supply in point./mana addAdd mana supply. Returns modified mana supply in point./mana subtractSubtract mana supply. Returns modified mana supply in point./pentamana reloadReload 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_CAPACITYManaEvents.CALCULATE_REGENERATIONManaEvents.CALCULATE_CONSUMPTIONManaEvents.CALCULATE_DAMAGE
Pentamana Extra uses this.
Get Casting Damage
livingEntity.getCastingDamageAgainst(entity, 1.234f)
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers