Logo
MINECRAFTBIBLE
Items
Items

All game items

Blocks
Blocks

Building blocks

Mobs
Mobs

Creatures & monsters

Biomes
Biomes

World biomes

Structures
Structures

Generated structures

Recipes
Recipes

Crafting guides

Advancements
Advancements

Achievements

Loot Tables
Loot Tables

Drop rates

Tags
Tags

Item groupings

All Versions
View all data →
Capes
Cape ArchiveNEW

Browse rare Minecon capes, OptiFine capes, and custom capes from players worldwide

Browse

Player Database
Player DatabasePopular

Search any player

Skin Browser
Skin Browser

Browse & download skins

Cape Gallery
Cape GalleryNEW

Minecon & OptiFine capes

Seed Vault
Seed Vault

Curated seeds

Learn

Guides
GuidesNew

Tutorials & tips

Blog
Blog

News & updates

Community

Community Hub
Community HubHub

Posts, discussions & more

All Versions
View community →
Seed Analyzer
Seed Analyzer

World seed analysis

Loot Explorer
Loot Explorer

Drop rates

Crafting Calculator
Crafting Calculator

Material planning

Enchant Calculator
Enchant Calculator

Probability math

Redstone Lab
Redstone Lab

Signal timing

Trading Profit
Trading Profit

Villager ROI

All Versions
View all tools →
Mods
Mods

Browse all mods

Plugins
Plugins

Server plugins

Resource Packs
Resource Packs

Textures & sounds

Shaders
Shaders

Visual enhancements

Datapacks
Datapacks

World logic

Scanner
Mod Intelligence

Scan & analyze any mod

All Versions
View all mods →
Loading...
IntroductionIntroductionVersion HistoryVersion HistoryGuidesGuidesBlog & NewsBlog & News
ItemsItemsBlocksBlocksMobsMobsRecipesRecipesBiomesBiomesStructuresStructuresAdvancementsAdvancementsLoot TablesLoot TablesTagsTags
ModsModsPluginsPluginsResource PacksResource PacksShadersShadersDatapacksDatapacks

MinecraftBible

The Ultimate Wiki

Logo
MINECRAFTBIBLE

The ultimate Minecraft reference. Every item, block, mob, and recipe documented with precision.

Community

  • Skin Browser
  • Cape Gallery
  • Seed Vault
  • Blog
  • Guides

Database

  • Items
  • Blocks
  • Mobs
  • Recipes
  • Biomes
  • Structures

Tools

  • Seed Analyzer
  • Mod Intelligence
  • Crafting Calculator
  • Enchant Calculator

Mods & Packs

  • Mods
  • Plugins
  • Resource Packs
  • Shaders
  • Datapacks

Site & Legal

  • About
  • Authors
  • Editorial Policy
  • Corrections
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA
  • Sitemap

© 2026 MinecraftBible. Not affiliated with Mojang or Microsoft.

PrivacyTermsContact
Pentamana Extra
ModGPL-3.0-or-later

Pentamana Extra

A Pentamana addon providing mana calculation modifying features.

359
Downloads
1
Followers
4 months ago
Updated
📦
1
Versions
librarymagicfabric
Download Latestv1.0.0-beta.2View on Modrinth

📖About Pentamana Extra

Pentamana Extra

Pentamana Extra is a library providing mana calculation modifying features. Examples include:

  • Enchantments.
  • Status effects.
  • Modifiers.

Configuration

config/pentamana-extra.json:

{
  "enchantmentCapacityBase": 2.0,
  "enchantmentStreamBase": 0.015625,
  "enchantmentManaEfficiencyBase": 0.1,
  "enchantmentPotencyBase": 0.5,
  "statusEffectManaBoostBase": 4.0,
  "statusEffectManaReductionBase": 4.0,
  "statusEffectInstantManaBase": 4.0,
  "statusEffectInstantDepleteBase": 6.0,
  "statusEffectManaPowerBase": 3.0,
  "statusEffectManaSicknessBase": 4.0,
  "statusEffectManaRegenerationBase": 50,
  "statusEffectManaInhibitionBase": 40,
  "shouldConvertExperienceLevel": false,
  "experienceLevelConversionBase": 0.5
}

Usage

enchantmentCapacityBase, statusEffectManaBoostBase, statusEffectManaReductionBase, shouldConvertExperienceLevel, experienceLevelConversionBase are used by the formula below:

float f = 0.0f;

f += (float)livingEntity.getCustomModifiedValue(PentamanaAttributeIdentifiers.MANA_CAPACITY, capacity.doubleValue());

for (Entry<Holder<Enchantment>> entry : livingEntity.getEnchantments(Enchantments.CAPACITY)) {
    f += CONFIG.enchantmentCapacityBase * (entry.getIntValue() + 1);
}

f += statusEffectManager.contains(PentamanaStatusEffectIdentifiers.MANA_BOOST)
    ? CONFIG.statusEffectManaBoostBase * (statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.MANA_BOOST) + 1)
    : 0.0f;
f -= statusEffectManager.contains(PentamanaStatusEffectIdentifiers.MANA_REDUCTION)
    ? CONFIG.statusEffectManaReductionBase * (statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.MANA_REDUCTION) + 1)
    : 0.0f;
f += CONFIG.shouldConvertExperienceLevel && livingEntity instanceof ServerPlayer
    ? CONFIG.experienceLevelConversionBase * ((ServerPlayer) livingEntity).experienceLevel
    : 0.0f;
f = Math.max(f, 0.0f);

enchantmentStreamBase, statusEffectInstantManaBase, statusEffectInstantDepleteBase, statusEffectManaRegenerationBase, statusEffectManaInhibitionBase are used by the formula below:

float f = 0.0f;

f += (float)livingEntity.getCustomModifiedValue(PentamanaAttributeIdentifiers.MANA_REGENERATION, regeneration.doubleValue());

for (Entry<Holder<Enchantment>> entry : livingEntity.getEnchantments(Enchantments.STREAM)) {
    f += CONFIG.enchantmentStreamBase * (entry.getIntValue() + 1);
}

f += statusEffectManager.contains(PentamanaStatusEffectIdentifiers.INSTANT_MANA)
    ? CONFIG.statusEffectInstantManaBase * (float) Math.pow(2.0, statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.INSTANT_MANA))
    : 0.0f;
f -= statusEffectManager.contains(PentamanaStatusEffectIdentifiers.INSTANT_DEPLETE)
    ? CONFIG.statusEffectInstantDepleteBase * (float) Math.pow(2.0, statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.INSTANT_DEPLETE))
    : 0.0f;
f += statusEffectManager.contains(PentamanaStatusEffectIdentifiers.MANA_REGENERATION)
    ? 1.0f / Math.max(1, CONFIG.statusEffectManaRegenerationBase >> statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.MANA_REGENERATION))
    : 0.0f;
f -= statusEffectManager.contains(PentamanaStatusEffectIdentifiers.MANA_INHIBITION)
    ? 1.0f / Math.max(1, CONFIG.statusEffectManaInhibitionBase >> statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.MANA_INHIBITION))
    : 0.0f;

enchantmentManaEfficiencyBase is used by the formula below:

float f = 0.0f;

f += (float)livingEntity.getCustomModifiedValue(PentamanaAttributeIdentifiers.MANA_CONSUMPTION, consumption.doubleValue());

for (Entry<Holder<Enchantment>> entry : livingEntity.getEnchantments(Enchantments.MANA_EFFICIENCY)) {
    f *= 1.0f - CONFIG.enchantmentManaEfficiencyBase * (entry.getIntValue() + 1);
}

enchantmentPotencyBase, statusEffectManaPowerBase, statusEffectManaSicknessBase are used by the formula below:

float f = 0.0f;

f += (float)livingEntity.getCustomModifiedValue(PentamanaAttributeIdentifiers.CASTING_DAMAGE, damage.doubleValue());

for (Entry<Holder<Enchantment>> entry : livingEntity.getEnchantments(Enchantments.POTENCY)) {
    f += CONFIG.enchantmentPotencyBase * (entry.getIntValue() + 1);
}

f += statusEffectManager.contains(PentamanaStatusEffectIdentifiers.MANA_POWER)
    ? (statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.MANA_POWER) + 1) * CONFIG.statusEffectManaPowerBase
    : 0.0f;
f -= statusEffectManager.contains(PentamanaStatusEffectIdentifiers.MANA_SICKNESS)
    ? (statusEffectManager.getActiveAmplifier(PentamanaStatusEffectIdentifiers.MANA_SICKNESS) + 1) * CONFIG.statusEffectManaSicknessBase
    : 0.0f;
f *= entity instanceof Witch
    ? 0.15f
    : 1.0f;
f = Math.max(f, 0.0f);

Command

The commands below require premission level 2 to execute.

  • /custom effect give <entities> <effect> [<duration|infinite>] [<amplifier>] Give custom status effect. effect can be pentamana.mana_boost, pentamana.mana_reduction, pentamana.instant_mana, pentamana.instant_deplete, pentamana.mana_regeneration, pentamana.mana_inhibition, pentamana.mana_power, pentamana.mana_sick.

Modifier

Modifiers can be added to or removed from items using custom data components. They are active when equipped in the written slot.

Compound custom_data: Parent tag.
 \- List modifiers
  \- Compound
    |- String attribute: namespace:path. Can be pentamana:mana_capacity, pentamana:mana_regeneration, pentamana:mana_consumption, pentamana:casting_damage.
    |- Double base: Any.
    |- String id: Any.
    |- String operation: Can be add_value, add_multiplied_base, add_multiplied_total.
    \- String slot: Can be mainhand, offhand, feet, legs, chest, head.

Below is an example modifier which increase mana capacity by 120 when held in offhand.

[
  custom_data={
    modifiers: [
      {
        attribute: "pentamana:mana_capacity",
        base: 120.0d,
        operation: "add_value",
        slot: "offhand"
      }
    ]
  }
]

Status Effect

Status effects can be added to or removed from items using custom data components. They are applied when the item is consumed.

Compound custom_data: Parent tag.
 \- List status_effects
  \- Compound A status effect.
    |- String id: namespace:path. Can be pentamana:mana_boost, pentamana:mana_reduction, pentamana:instant_mana, pentamana:instant_deplete, pentamana:mana_regeneration, pentamana:mana_inhibition, pentamana:mana_power, pentamana:mana_sickness.
    \- List episodes: A playlist. Unordered.
     \- Compound An episode.
       |- Int amplifier: Any.
       \- Int duration: Any. In ticks.

Below is an example status effect which increase the mana regeneration by 16 when the item is consumed.

[
  custom_data={
    status_effects: [
      {
        id: "pentamana:instant_mana",
        episodes: [
          {
            duration: 1,
            amplifier: 2
          }
        ]
      }
    ]
  }
]

Mana Boost

Increase mana capacity by level * statusEffectManaBoostBase.

Mana Reduction

Decrease mana capacity by level * statusEffectManaReductionBase.

Instant Mana

Increase mana regeneration by 2 ^ level * statusEffectInstantManaBase.

Instant Deplete

Decrease mana regeneration by 2 ^ level * statusEffectInstantDepleteBase.

Mana Regeneration

Increase mana regeneration by manaPerPoint / statusEffectManaRegenerationBase >> level

Mana Inhibition

Decrease mana regeneration by manaPerPoint / statusEffectManaInhibitionBase >> level

Mana Power

Increase casting damage by level * statusEffectManaPowerBase.

Mana Sickness

Decrease casting damage by level * statusEffectManaSicknessBase.

Enchantment

Capacity

  • Maximum level: II
  • Primary items: Stick
  • Secondary items: Axe, Hoe, Mace, Pickaxe, Shovel, Sword, Trident
  • Enchantment weight: 2

Capacity adds extra mana capacity level * enchantmentCapacityBase.

Stream

  • Maximum level: II
  • Primary items: Stick
  • Secondary items: Axe, Hoe, Mace, Pickaxe, Shovel, Sword, Trident
  • Enchantment weight: 5

Stream adds extra mana regeneration by level * enchantmentStreamBase.

Mana Efficiency

  • Maximum level: V
  • Primary items: Stick
  • Secondary items: Axe, Hoe, Mace, Pickaxe, Shovel, Sword, Trident
  • Enchantment weight: 5

Mana Efficiency reduces the casting mana cost by level * enchantmentManaEfficiencyBase percent.

Potency

  • Maximum level: V
  • Primary items: Stick
  • Secondary items: Axe, Hoe, Mace, Pickaxe, Shovel, Sword, Trident
  • Enchantment weight: 10

Potency adds the casting damage by (level + 1) * enchantmentPotencyBase.

👥 Team & Contributors

CookedSeafood
CookedSeafoodOwner

⚙️ Compatibility

Environment
🖥️ Server-side
Loaders
fabric
Minecraft Versions
26.1-snapshot-626.1-snapshot-726.1-snapshot-8

🔗 Links

Modrinth Page