Skip to content

DMZ Spellbooks Regen Fix

Fixes Dragon Mine Z Ki charging slowdowns caused by Iron's Spells Max Mana scaling, lets Mana Regen bonuses boost Ki, and prevents respawn Ki wipes.

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

DMZ Spellbooks Regen Fix

A companion compatibility and bug-fix addon for Dragon Mine Z, Iron's Spells 'n Spellbooks, and DMZ Spells: Ki is Mana on Minecraft Forge 1.20.1.


Why This Mod Exists

When playing with DMZ Spells: Ki is Mana, Max Mana bonuses from Iron's Spells equipment expand your energy pool beyond your native Ki capacity. Without compensation, Dragon Mine Z Ki charging becomes noticeably slower, Mana Regeneration attributes do not meaningfully speed up Ki recovery, precision clamping in MagicManager can pull energy downward, positive mana gains can be lost, and respawning can reset your Ki back to 0.

DMZ Spellbooks Regen Fix resolves those regeneration and synchronization conflicts automatically without modifying the original mod files.


Recommended Config (Disable Passive Regen Boost)

If you want Iron's Spells gear bonuses (Max Mana and Mana Regeneration) to apply only when actively charging Ki—and keep standing-still passive regeneration at normal Dragon Mine Z values—set these options to false in config/dmz_spellbooks_regen_fix-common.toml:

[ManaRegenAttribute]
applyManaRegenPassively = false

[IronsManaSyncFixes]
forwardMagicManagerRegenToKi = false

[KiRegenCompensation]
compensateMaxManaPassively = false
  • Caps & Limits: maxInflationRatioCap limits Max Mana pool compensation to 20.0× by default (configurable from 1.0 to 1000.0). Mana Regeneration scales up to Iron's Spells' native attribute cap (100.0 / 100×), with debuffs floored at minManaRegenFactor (default 0.25×).

Features

  • Max Mana Scaling Compensation: Scales Dragon Mine Z active Ki charging and passive Ki regeneration by your (currentMaxEnergy / nativeMaxKi) ratio (with a configurable cap) so Max Mana bonuses never slow down Ki recovery.
  • Mana Regeneration Synergy: Applies Iron's Spells' Mana Regeneration attribute (from mage armor, curios, enchantments, and effects) to boost both active Ki charging and passive Ki regeneration.
  • Floating-Point Mana Precision Fix: Replaces integer truncation/clamping issues in MagicManager mana regeneration so periodic ticks do not drag your DMZ energy downward.
  • Positive Mana Grants & Regen Forwarding: Allows external positive Iron's Spells mana gains (such as Mana Potions, Instant Mana effects, and passive mana regen when enabled) to flow into your DMZ Current Energy instead of being discarded.
  • Respawn Ki Protection: Prevents Iron's Spells' respawn handler from wiping refilled DMZ Ki back to 0.
  • Optional Percentage Charging Bonus: Includes an optional config setting to add extra % Max Energy per second regeneration while actively charging Ki (disabled by default at 0.0).

Configuration

A config file is automatically generated on launch at:

config/dmz_spellbooks_regen_fix-common.toml

Every feature can be tuned or toggled independently:

  • [KiRegenCompensation]
    • compensateMaxManaWhileCharging (default: true)
    • compensateMaxManaPassively (default: true)
    • maxInflationRatioCap (default: 20.0)
  • [ManaRegenAttribute]
    • applyManaRegenWhileCharging (default: true)
    • applyManaRegenPassively (default: true)
    • manaRegenAttributeWeight (default: 1.0)
    • minManaRegenFactor (default: 0.25)
    • extraPercentMaxEnergyPerSecondWhenCharging (default: 0.0)
  • [IronsManaSyncFixes]
    • fixMagicManagerIntTruncationClamp (default: true)
    • allowPositiveManaGrantsToKi (default: true)
    • forwardMagicManagerRegenToKi (default: true)
    • preventRespawnKiWipe (default: true)

Requirements

  • Minecraft: 1.20.1
  • Forge: 47+
  • Dragon Mine Z: 2.1.2+
  • Iron's Spells 'n Spellbooks: 1.20.1-3.16.2+
  • DMZ Spells: Ki is Mana: 1.0.0+

Modpacks & Servers

This mod uses standard Forge events and non-invasive Mixins and should be installed on both client and server (required on the server/singleplayer host for Ki and Mana synchronization fixes). Free to include in modpacks.