Damage Exchange






Take damage and use Draw Mahoujin shortly afterward. Successfully drawing the blood circle makes the mana display appear.
Casting and maintaining spells consumes mana. MANA_UP_COUNTER controls how much must be spent before MANA_INCREASE is added to maximum mana, up to MAX_MANA_CAP.
Mana regenerates naturally. MANA_REGEN_HUNGER_FACTOR controls how hunger modifies passive regeneration, and MANA_RECOVERY_SLEEP controls the share of maximum mana restored by sleeping.
When a spell needs mana, it first uses personal mana, then mana stored in a carried attuned gem, and finally an active Mana Circuit in range. An Attuned Diamond has more storage than an Attuned Emerald; see the attuned gems guide for charging and capacity settings.
The standard Mana Circuit and Magitech Mana Circuit share the same controls. Right-click an unowned circuit to claim it, right-click with an empty hand to move personal mana into it, and sneak-right-click to toggle it. A redstone signal reverses its selected on/off state.
Circuits normally serve their owner within the configured horizontal range. The owner can use Fae Essence on a circuit to toggle shared access, allowing it to supply other players' applicable magic.
Carrying William can add mana during personal regeneration. R'lyeh can reduce it.
The contribution is style × max(0, fame) × WILLIAM_PERSONAL_MANA_FACTOR. When several artifacts are carried, only the strongest positive William value and strongest negative R'lyeh value apply.
Kodoku provides one automation route. Place a charged Kodoku worm in the world and kill it with fire, burning, or lava. Its stored value and the local leyline value determine how much mana is added to active nearby Mana Circuits.
A placed William periodically generates mana from its positive style and fame, then divides that mana among non-full circuits owned by its creator within the configured range. A placed R'lyeh drains personal mana from nearby players.
Leylines connect regularly spaced leypoints throughout enabled dimensions. They are visible while Mystic Eyes of Fay Sight is active.
For mana regeneration, the game examines a seven-by-seven horizontal area centered on the player. Ordinary leyline segments contribute 1 to the local ley value, crossings contribute 2, and leypoints contribute 3.
When LEY_AFFECTS_MANA=true and LEY_FLAT=false: LEY_PUNISHMENT + (local ley value ÷ 19 × maximum mana × LEY_FACTOR).
When LEY_FLAT=true: LEY_PUNISHMENT + (LEY_FACTOR × local ley value ÷ 19). This value does not scale with maximum mana.
The game converts the leyline adjustment to a whole number and adds it to the other regeneration sources. Leyline adjustments apply only in included dimensions.
Fae spawn near leylines and are attracted to magic performed at leypoints. Flying with an elytra along a leyline also provides a boost.
LEY_DISTANCE controls leypoint spacing, and LEY_OFFSET moves the grid. Servers can also change the dimension list, regeneration effect, and related behavior.
| Setting | Default | Range | Effect |
|---|---|---|---|
CLARENT_MANA_PER_DAMAGEmahoutsukai-server.tomlclarent | 0.02 | 0–10000000 mana per stored damage | Mana needed to add each point of stored damage to Clarent's next attack. |
CLIENT_GUI_MAHOU_PLACEMENT_Xmahoutsukai-client.tomlClient | 10 | 0–100000000 pixels | Horizontal screen position of the mana display, measured from the left edge. |
CLIENT_GUI_MAHOU_PLACEMENT_Ymahoutsukai-client.tomlClient | 20 | 0–100000000 pixels | Vertical screen position of the mana display, measured from the top edge. |
LEY_RENDER_DISTANCEmahoutsukai-client.tomlClient | 100 | 0–100000000 blocks | Maximum distance at which visible leylines are rendered on the client. |
ALCHEMICAL_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangealchemical | 16 | 0–100000000 mana per matching block | Mana paid for each matching block whose replacement is attempted. |
CATALYST_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangecatalyst | 50 | 0–100000000 mana per catalyst | Mana cost for each powdered catalyst randomly exchanged. |
CHRONAL_EXCHANGE_MANA_GAIN_LOSSmahoutsukai-server.tomlexchangechronal | 10 | 0–100000000 mana per operation at peak | Magnitude of Chronal Exchange's peak mana gain and peak mana loss. |
CONTRACT_MANA_COSTmahoutsukai-server.tomlexchangecontract | 10 | 0–100000000 mana per formation | Mana charged to the player whose circle first completes a new Contract. |
DAMAGE_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangedamage | 40 | 0–100000000 mana per cast | Mana cost of releasing a Damage Exchange scroll. |
DAMAGE_EXCHANGE_MANA_GAINmahoutsukai-server.tomlexchangedamage | 20 | 0–100000000 mana per whole incoming damage point | Mana restored for each whole point of the eligible hit's original incoming damage; zero still reduces damage and consumes a conversion but awards no mana. |
DURABILITY_EXCHANGE_MANA_GAIN_CAPmahoutsukai-server.tomlexchangedurability | 10 | 0–100000000 successful steps per cycle | Stops conversion after this many successful durability payments; efficiency values below 1 can award multiple mana per step. |
IMMUNITY_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangeimmunity | 400 | 0–100000000 mana per cast | Mana cost of releasing an Immunity Exchange scroll. |
MYSTIC_EYES_MANA_COSTmahoutsukai-server.tomleyesbinding | 320 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of Binding scroll. |
BLACK_FLAME_MANA_COSTmahoutsukai-server.tomleyesblack flame | 300 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of the Black Flame scroll. |
CLAIRVOYANCE_MANA_COSTmahoutsukai-server.tomleyesclairvoyance | 220 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of Clairvoyance scroll. |
DEATH_COLLECTION_DRAIN_PER_SOULmahoutsukai-server.tomleyesdeath collection | 1 | 0–10000000 mana per soul point per 5 seconds | Multiplier used to calculate Death Collection's recurring mana regeneration penalty before rounding toward zero. |
DEATH_COLLECTION_MANA_COSTmahoutsukai-server.tomleyesdeath collection | 400 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of Death Collection scroll. |
FAY_SIGHT_MANA_COSTmahoutsukai-server.tomleyesfay sight | 100 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of Fay Sight scroll. |
INSIGHT_MANA_COSTmahoutsukai-server.tomleyesinsight | 320 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of Insight scroll. |
FAE_SPAWN_RATEmahoutsukai-server.tomleyesleylines | 1 | 0–100000000 | Multiplier applied to the Fae spawn chance near leylines. |
LEY_AFFECTS_MANAmahoutsukai-server.tomleyesleylines | true | — | Controls whether proximity to leylines changes mana regeneration. |
LEY_BLACKLISTmahoutsukai-server.tomleyesleylines | true | — | Treats LEY_DIMENSION_LIST as a blacklist when true and a whitelist when false. |
LEY_DIMENSION_LISTmahoutsukai-server.tomleyesleylines | [] | — | Dimension IDs used as a blacklist or whitelist according to LEY_BLACKLIST. |
LEY_DISTANCEmahoutsukai-server.tomleyesleylines | 300 | 0–100000000 blocks | Spacing between leypoints. |
LEY_ELYTRA_LIMITED_TO_FAY_SIGHTmahoutsukai-server.tomleyesleylines | false | — | Requires Fay Sight for the leyline elytra boost when enabled. |
LEY_FACTORmahoutsukai-server.tomleyesleylines | 0.01 | 0–100000000 | Factor used to calculate the leyline regeneration bonus. |
LEY_FLATmahoutsukai-server.tomleyesleylines | false | — | Uses a flat leyline regeneration bonus when true; otherwise the bonus is based on maximum mana. |
LEY_OFFSETmahoutsukai-server.tomleyesleylines | 0 | 0–100000000 blocks | Offsets the leyline grid from the default coordinate origin. |
LEY_PUNISHMENTmahoutsukai-server.tomleyesleylines | -1 | -10000000–100000000 | Value added to regeneration away from leylines and the floor for mana added by leylines. |
LEY_RENDER_HEIGHTmahoutsukai-server.tomleyesleylines | 70 | 0–100000000 Y coordinate | Height at which visible leylines are rendered. |
LEY_RUNESmahoutsukai-server.tomleyesleylines | true | — | Renders leylines as runes when true and as lines when false. |
REVERSION_EYES_MANA_COSTmahoutsukai-server.tomleyesreversion | 410 | 0–100000000 mana per cast | Mana cost of releasing a Mystic Eyes of Reversion scroll. |
BUTTERFLY_EFFECT_MANA_COSTmahoutsukai-server.tomlfamiliarbutterfly effect | 100 | 0–100000000 mana per cast | Mana cost of releasing a Butterfly Effect scroll. |
FAMILIARS_GARDEN_MANA_COSTmahoutsukai-server.tomlfamiliarfamiliars garden | 200 | 0–100000000 mana per cast | Mana cost of releasing a Familiar's Garden scroll. |
RECALL_FAMILIAR_MANA_COSTmahoutsukai-server.tomlfamiliarrecall familiar | 20 | 0–100000000 mana per cast | Mana cost of releasing a Recall Familiar scroll. |
POSSESS_ENTITY_MANA_COSTmahoutsukai-server.tomlfamiliarshared vision | 200 | 0–100000000 mana per cast | Mana cost of releasing a Shared Vision scroll. |
SUMMON_FAMILIAR_MANA_COSTmahoutsukai-server.tomlfamiliarsummon familiar | 200 | 0–100000000 mana per cast | Mana cost of releasing a Summon Familiar scroll. |
SWAP_FAMILIAR_MANA_COSTmahoutsukai-server.tomlfamiliarswap familiar | 40 | 0–100000000 mana per cast | Mana cost of releasing a Familiar Exchange scroll. |
CREATIVE_IGNORES_MANA_COSTSmahoutsukai-server.tomlmana | true | — | Controls whether players in Creative mode ignore mana costs. |
MANA_ADDED_SCALING_REGEN_PER_TICKmahoutsukai-server.tomlmana | 0 | 0–10000000 | Adds passive regeneration that scales with maximum mana. |
MANA_INCREASEmahoutsukai-server.tomlmana | 1 | 0–100000000 | Amount added to maximum mana whenever the spending requirement is met. |
MANA_INCREASE_LOG_PUNISHMENTmahoutsukai-server.tomlmana | false | — | Uses logarithmic scaling for the configured reduction in maximum mana growth. |
MANA_INCREASE_PUNISHMENT_FACTORmahoutsukai-server.tomlmana | 0 | -10000000–10000000 | Factor used to reduce maximum mana growth as current maximum mana rises. |
MANA_RECOVERY_SLEEPmahoutsukai-server.tomlmana | 0.5 | 0–100000000 fraction of maximum mana | Fraction of maximum mana recovered by sleeping. |
MANA_REGEN_HUNGER_FACTORmahoutsukai-server.tomlmana | 1 | -10000000–10000000 | Scaling factor for the effect of hunger on mana regeneration. |
MANA_REGEN_PER_TICKmahoutsukai-server.tomlmana | 1 | 0–100000000 mana per tick before modifiers | Base passive mana regeneration. |
MANA_UP_COUNTERmahoutsukai-server.tomlmana | 100 | 0–100000000 | Base amount of mana that must be spent before maximum mana increases. |
MANA_UP_COUNTER_MAXmahoutsukai-server.tomlmana | 100 | 0–100000000 | Maximum amount of mana that must be spent for one maximum mana increase. |
MANA_UP_COUNTER_RATIOmahoutsukai-server.tomlmana | 0 | 0–100000000 | Adds a requirement based on current maximum mana to the amount that must be spent for an increase. |
MAX_MANA_CAPmahoutsukai-server.tomlmana | 200000 | 0–100000000 | Maximum personal mana capacity. |
ATTUNED_DIAMOND_CAPACITYmahoutsukai-server.tomlmana storage | 10000 | 0–100000000 mana | Maximum mana stored by an Attuned Diamond. |
ATTUNED_EMERALD_CAPACITYmahoutsukai-server.tomlmana storage | 5000 | 0–100000000 mana | Maximum mana stored by an Attuned Emerald. |
MANA_CIRCUIT_CAPACITYmahoutsukai-server.tomlmana storage | 100000 | 0–100000000 mana | Maximum mana stored by a standard Mana Circuit. |
MANA_CIRCUIT_MAGITECH_CAPACITYmahoutsukai-server.tomlmana storage | 100000 | 0–100000000 mana | Maximum mana stored by a Magitech Mana Circuit. |
MANA_CIRCUIT_RANGEmahoutsukai-server.tomlmana storage | 10 | 0–100000000 blocks | Horizontal range in which either type of Mana Circuit can supply mana. |
DAMAGE_REPLICATION_MANA_COSTmahoutsukai-server.tomlmystic | 160 | 0–100000000 mana per cast attempt | Upfront cost of attempting to select a Shared Pain target. |
RHO_AIAS_MANA_COSTmahoutsukai-server.tomlmystic | 300 | 0–100000000 mana per cast | Cost to create a Rho Aias shield. |
AUTHORITY_MANA_COSTmahoutsukai-server.tomlmysticauthority | 900 | 0–100000000 mana per cast | Mana cost of releasing a Borrowed Authority scroll. |
HEAVENS_CUP_MANA_COSTmahoutsukai-server.tomlmysticcup of heaven | 2 | 0–100000000 | Base multiplier applied to Cup of Heaven's mana formula. |
NOBU_MANA_PER_CONSTRUCTmahoutsukai-server.tomlnobu | 40 | 0–10000000 mana per construct | Mana required to summon each Nobu Firing Squad construct. |
NOBU_MANA_PER_SHOTmahoutsukai-server.tomlnobu | 20 | 0–10000000 mana per bullet | Mana required for each Auto-Lock or construct bullet fired by Nobu. |
MAGIC_DAMAGE_FLATmahoutsukai-server.tomlother | true | — | When caster damage is enabled, uses a fixed damage amount. |
MAGIC_DAMAGE_VALUEmahoutsukai-server.tomlother | 1 | 0–100000000 | Caster damage amount when flat damage is enabled, or the multiplier applied to mana spent when it is disabled. |
MAGIC_DAMAGES_PLAYERmahoutsukai-server.tomlother | false | — | Makes casting magic damage the caster. |
ONE_LIFEmahoutsukai-server.tomlother | false | — | Resets a player's Mahou data after death. |
PROJECTION_MANA_COSTmahoutsukai-server.tomlprojectionprojection | 1000 | 0–100000000 mana per release | Mana cost of each Projection scroll release, including memorization, copy creation, and failed attempts. |
STRENGTHENING_MANA_COSTmahoutsukai-server.tomlprojectionstrengthening | 50 | 0–100000000 mana | Mana cost to release a Scroll of Strengthening. |
MARBLE_MANA_COSTmahoutsukai-server.tomlreality marble | 4000 | 0–100000000 mana | Mana cost to use the Scroll of the Reality Marble. |
REPLICA_ATTACK_MANA_COSTmahoutsukai-server.tomlreplica | 30 | 0–10000000 mana per shockwave | Mana required when starting a block to release Replica's Shockwave. |
REPLICA_TELEPORT_MANA_COSTmahoutsukai-server.tomlreplica | 300 | 0–10000000 mana per teleport | Mana required to activate Replica's area teleport. |
RHONGOMYNIAD_MANA_COSTmahoutsukai-server.tomlrhongomyniad | 300 | 0–10000000 mana per activation | Mana paid by a placed Rhongomyniad for each periodic smite scan or reactive punishment. |
FALLEN_DOWN_MANA_COSTmahoutsukai-server.tomlsecretfallen down | 2000 | 0–100000000 mana per operation every four ticks | Mana cost attempted by each active Fallen Down operation. The runtime field and TOML key have different names. |
GANDR_MANA_COST_FACTORmahoutsukai-server.tomlsecretgandr | 0.05 | 0–100000000 | Maximum mana multiplier for Gandr's scaled cost, or its complete cost when scaling is disabled. |
GEAS_MANA_COSTmahoutsukai-server.tomlsecretgeas | 30 | 0–100000000 mana per attempt | Mana paid before a Geas target is added, removed, or listed. |
GEAS_MAX_MANA_REGENmahoutsukai-server.tomlsecretgeas | 10000000 | 0–100000000 mana per tick | Maximum total passive mana regeneration per tick from all qualifying creature type Geases. |
MANA_REGEN_PER_GEASmahoutsukai-server.tomlsecretgeas | 3 | 0–100000000 mana per tick per creature type Geas | Passive mana regeneration added for each unique Geas on an unnamed creature type. |
RETRIBUTION_MANA_PER_DIFFERENCEmahoutsukai-server.tomlsecretretribution | 40 | 0–100000000 mana multiplier | Base multiplier used by Retribution's cost formula for the selected health difference. |
RIPPER_FOG_MANA_COSTmahoutsukai-server.tomlsecretripper | 200 | 0–10000000 mana per fog | Mana cost of a successful Ripper fog activation. |
RIPPER_INVIS_MANA_COSTmahoutsukai-server.tomlsecretripper | 0 | 0–10000000 mana per concealment | Mana cost of applying or reapplying Presence Concealment while holding both Rippers. |
RIPPER_MANA_COSTmahoutsukai-server.tomlsecretripper | 800 | 0–100000000 mana per creation | Mana cost of converting a Presence Concealment scroll into two Rippers. |
SELECTIVE_DISPLACEMENT_MANA_COSTmahoutsukai-server.tomlsecretselective displacement | 900 | 0–10000000 mana per cast | Mana cost of releasing a Selective Displacement scroll. |