Mana

Unlocking and using mana

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.

Storage and spell draw order

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.

Spells that generate mana

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.

Generating mana for circuits

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 and leypoints

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.

Scaling calculation

When LEY_AFFECTS_MANA=true and LEY_FLAT=false: LEY_PUNISHMENT + (local ley value ÷ 19 × maximum mana × LEY_FACTOR).

Flat calculation

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.

SettingDefaultRangeEffect
CLARENT_MANA_PER_DAMAGEmahoutsukai-server.tomlclarent0.020–10000000 mana per stored damageMana needed to add each point of stored damage to Clarent's next attack.
CLIENT_GUI_MAHOU_PLACEMENT_Xmahoutsukai-client.tomlClient100–100000000 pixelsHorizontal screen position of the mana display, measured from the left edge.
CLIENT_GUI_MAHOU_PLACEMENT_Ymahoutsukai-client.tomlClient200–100000000 pixelsVertical screen position of the mana display, measured from the top edge.
LEY_RENDER_DISTANCEmahoutsukai-client.tomlClient1000–100000000 blocksMaximum distance at which visible leylines are rendered on the client.
ALCHEMICAL_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangealchemical160–100000000 mana per matching blockMana paid for each matching block whose replacement is attempted.
CATALYST_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangecatalyst500–100000000 mana per catalystMana cost for each powdered catalyst randomly exchanged.
CHRONAL_EXCHANGE_MANA_GAIN_LOSSmahoutsukai-server.tomlexchangechronal100–100000000 mana per operation at peakMagnitude of Chronal Exchange's peak mana gain and peak mana loss.
CONTRACT_MANA_COSTmahoutsukai-server.tomlexchangecontract100–100000000 mana per formationMana charged to the player whose circle first completes a new Contract.
DAMAGE_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangedamage400–100000000 mana per castMana cost of releasing a Damage Exchange scroll.
DAMAGE_EXCHANGE_MANA_GAINmahoutsukai-server.tomlexchangedamage200–100000000 mana per whole incoming damage pointMana 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.tomlexchangedurability100–100000000 successful steps per cycleStops conversion after this many successful durability payments; efficiency values below 1 can award multiple mana per step.
IMMUNITY_EXCHANGE_MANA_COSTmahoutsukai-server.tomlexchangeimmunity4000–100000000 mana per castMana cost of releasing an Immunity Exchange scroll.
MYSTIC_EYES_MANA_COSTmahoutsukai-server.tomleyesbinding3200–100000000 mana per castMana cost of releasing a Mystic Eyes of Binding scroll.
BLACK_FLAME_MANA_COSTmahoutsukai-server.tomleyesblack flame3000–100000000 mana per castMana cost of releasing a Mystic Eyes of the Black Flame scroll.
CLAIRVOYANCE_MANA_COSTmahoutsukai-server.tomleyesclairvoyance2200–100000000 mana per castMana cost of releasing a Mystic Eyes of Clairvoyance scroll.
DEATH_COLLECTION_DRAIN_PER_SOULmahoutsukai-server.tomleyesdeath collection10–10000000 mana per soul point per 5 secondsMultiplier used to calculate Death Collection's recurring mana regeneration penalty before rounding toward zero.
DEATH_COLLECTION_MANA_COSTmahoutsukai-server.tomleyesdeath collection4000–100000000 mana per castMana cost of releasing a Mystic Eyes of Death Collection scroll.
FAY_SIGHT_MANA_COSTmahoutsukai-server.tomleyesfay sight1000–100000000 mana per castMana cost of releasing a Mystic Eyes of Fay Sight scroll.
INSIGHT_MANA_COSTmahoutsukai-server.tomleyesinsight3200–100000000 mana per castMana cost of releasing a Mystic Eyes of Insight scroll.
FAE_SPAWN_RATEmahoutsukai-server.tomleyesleylines10–100000000Multiplier applied to the Fae spawn chance near leylines.
LEY_AFFECTS_MANAmahoutsukai-server.tomleyesleylinestrueControls whether proximity to leylines changes mana regeneration.
LEY_BLACKLISTmahoutsukai-server.tomleyesleylinestrueTreats 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.tomleyesleylines3000–100000000 blocksSpacing between leypoints.
LEY_ELYTRA_LIMITED_TO_FAY_SIGHTmahoutsukai-server.tomleyesleylinesfalseRequires Fay Sight for the leyline elytra boost when enabled.
LEY_FACTORmahoutsukai-server.tomleyesleylines0.010–100000000Factor used to calculate the leyline regeneration bonus.
LEY_FLATmahoutsukai-server.tomleyesleylinesfalseUses a flat leyline regeneration bonus when true; otherwise the bonus is based on maximum mana.
LEY_OFFSETmahoutsukai-server.tomleyesleylines00–100000000 blocksOffsets the leyline grid from the default coordinate origin.
LEY_PUNISHMENTmahoutsukai-server.tomleyesleylines-1-10000000–100000000Value added to regeneration away from leylines and the floor for mana added by leylines.
LEY_RENDER_HEIGHTmahoutsukai-server.tomleyesleylines700–100000000 Y coordinateHeight at which visible leylines are rendered.
LEY_RUNESmahoutsukai-server.tomleyesleylinestrueRenders leylines as runes when true and as lines when false.
REVERSION_EYES_MANA_COSTmahoutsukai-server.tomleyesreversion4100–100000000 mana per castMana cost of releasing a Mystic Eyes of Reversion scroll.
BUTTERFLY_EFFECT_MANA_COSTmahoutsukai-server.tomlfamiliarbutterfly effect1000–100000000 mana per castMana cost of releasing a Butterfly Effect scroll.
FAMILIARS_GARDEN_MANA_COSTmahoutsukai-server.tomlfamiliarfamiliars garden2000–100000000 mana per castMana cost of releasing a Familiar's Garden scroll.
RECALL_FAMILIAR_MANA_COSTmahoutsukai-server.tomlfamiliarrecall familiar200–100000000 mana per castMana cost of releasing a Recall Familiar scroll.
POSSESS_ENTITY_MANA_COSTmahoutsukai-server.tomlfamiliarshared vision2000–100000000 mana per castMana cost of releasing a Shared Vision scroll.
SUMMON_FAMILIAR_MANA_COSTmahoutsukai-server.tomlfamiliarsummon familiar2000–100000000 mana per castMana cost of releasing a Summon Familiar scroll.
SWAP_FAMILIAR_MANA_COSTmahoutsukai-server.tomlfamiliarswap familiar400–100000000 mana per castMana cost of releasing a Familiar Exchange scroll.
CREATIVE_IGNORES_MANA_COSTSmahoutsukai-server.tomlmanatrueControls whether players in Creative mode ignore mana costs.
MANA_ADDED_SCALING_REGEN_PER_TICKmahoutsukai-server.tomlmana00–10000000Adds passive regeneration that scales with maximum mana.
MANA_INCREASEmahoutsukai-server.tomlmana10–100000000Amount added to maximum mana whenever the spending requirement is met.
MANA_INCREASE_LOG_PUNISHMENTmahoutsukai-server.tomlmanafalseUses logarithmic scaling for the configured reduction in maximum mana growth.
MANA_INCREASE_PUNISHMENT_FACTORmahoutsukai-server.tomlmana0-10000000–10000000Factor used to reduce maximum mana growth as current maximum mana rises.
MANA_RECOVERY_SLEEPmahoutsukai-server.tomlmana0.50–100000000 fraction of maximum manaFraction of maximum mana recovered by sleeping.
MANA_REGEN_HUNGER_FACTORmahoutsukai-server.tomlmana1-10000000–10000000Scaling factor for the effect of hunger on mana regeneration.
MANA_REGEN_PER_TICKmahoutsukai-server.tomlmana10–100000000 mana per tick before modifiersBase passive mana regeneration.
MANA_UP_COUNTERmahoutsukai-server.tomlmana1000–100000000Base amount of mana that must be spent before maximum mana increases.
MANA_UP_COUNTER_MAXmahoutsukai-server.tomlmana1000–100000000Maximum amount of mana that must be spent for one maximum mana increase.
MANA_UP_COUNTER_RATIOmahoutsukai-server.tomlmana00–100000000Adds a requirement based on current maximum mana to the amount that must be spent for an increase.
MAX_MANA_CAPmahoutsukai-server.tomlmana2000000–100000000Maximum personal mana capacity.
ATTUNED_DIAMOND_CAPACITYmahoutsukai-server.tomlmana storage100000–100000000 manaMaximum mana stored by an Attuned Diamond.
ATTUNED_EMERALD_CAPACITYmahoutsukai-server.tomlmana storage50000–100000000 manaMaximum mana stored by an Attuned Emerald.
MANA_CIRCUIT_CAPACITYmahoutsukai-server.tomlmana storage1000000–100000000 manaMaximum mana stored by a standard Mana Circuit.
MANA_CIRCUIT_MAGITECH_CAPACITYmahoutsukai-server.tomlmana storage1000000–100000000 manaMaximum mana stored by a Magitech Mana Circuit.
MANA_CIRCUIT_RANGEmahoutsukai-server.tomlmana storage100–100000000 blocksHorizontal range in which either type of Mana Circuit can supply mana.
DAMAGE_REPLICATION_MANA_COSTmahoutsukai-server.tomlmystic1600–100000000 mana per cast attemptUpfront cost of attempting to select a Shared Pain target.
RHO_AIAS_MANA_COSTmahoutsukai-server.tomlmystic3000–100000000 mana per castCost to create a Rho Aias shield.
AUTHORITY_MANA_COSTmahoutsukai-server.tomlmysticauthority9000–100000000 mana per castMana cost of releasing a Borrowed Authority scroll.
HEAVENS_CUP_MANA_COSTmahoutsukai-server.tomlmysticcup of heaven20–100000000Base multiplier applied to Cup of Heaven's mana formula.
NOBU_MANA_PER_CONSTRUCTmahoutsukai-server.tomlnobu400–10000000 mana per constructMana required to summon each Nobu Firing Squad construct.
NOBU_MANA_PER_SHOTmahoutsukai-server.tomlnobu200–10000000 mana per bulletMana required for each Auto-Lock or construct bullet fired by Nobu.
MAGIC_DAMAGE_FLATmahoutsukai-server.tomlothertrueWhen caster damage is enabled, uses a fixed damage amount.
MAGIC_DAMAGE_VALUEmahoutsukai-server.tomlother10–100000000Caster damage amount when flat damage is enabled, or the multiplier applied to mana spent when it is disabled.
MAGIC_DAMAGES_PLAYERmahoutsukai-server.tomlotherfalseMakes casting magic damage the caster.
ONE_LIFEmahoutsukai-server.tomlotherfalseResets a player's Mahou data after death.
PROJECTION_MANA_COSTmahoutsukai-server.tomlprojectionprojection10000–100000000 mana per releaseMana cost of each Projection scroll release, including memorization, copy creation, and failed attempts.
STRENGTHENING_MANA_COSTmahoutsukai-server.tomlprojectionstrengthening500–100000000 manaMana cost to release a Scroll of Strengthening.
MARBLE_MANA_COSTmahoutsukai-server.tomlreality marble40000–100000000 manaMana cost to use the Scroll of the Reality Marble.
REPLICA_ATTACK_MANA_COSTmahoutsukai-server.tomlreplica300–10000000 mana per shockwaveMana required when starting a block to release Replica's Shockwave.
REPLICA_TELEPORT_MANA_COSTmahoutsukai-server.tomlreplica3000–10000000 mana per teleportMana required to activate Replica's area teleport.
RHONGOMYNIAD_MANA_COSTmahoutsukai-server.tomlrhongomyniad3000–10000000 mana per activationMana paid by a placed Rhongomyniad for each periodic smite scan or reactive punishment.
FALLEN_DOWN_MANA_COSTmahoutsukai-server.tomlsecretfallen down20000–100000000 mana per operation every four ticksMana cost attempted by each active Fallen Down operation. The runtime field and TOML key have different names.
GANDR_MANA_COST_FACTORmahoutsukai-server.tomlsecretgandr0.050–100000000Maximum mana multiplier for Gandr's scaled cost, or its complete cost when scaling is disabled.
GEAS_MANA_COSTmahoutsukai-server.tomlsecretgeas300–100000000 mana per attemptMana paid before a Geas target is added, removed, or listed.
GEAS_MAX_MANA_REGENmahoutsukai-server.tomlsecretgeas100000000–100000000 mana per tickMaximum total passive mana regeneration per tick from all qualifying creature type Geases.
MANA_REGEN_PER_GEASmahoutsukai-server.tomlsecretgeas30–100000000 mana per tick per creature type GeasPassive mana regeneration added for each unique Geas on an unnamed creature type.
RETRIBUTION_MANA_PER_DIFFERENCEmahoutsukai-server.tomlsecretretribution400–100000000 mana multiplierBase multiplier used by Retribution's cost formula for the selected health difference.
RIPPER_FOG_MANA_COSTmahoutsukai-server.tomlsecretripper2000–10000000 mana per fogMana cost of a successful Ripper fog activation.
RIPPER_INVIS_MANA_COSTmahoutsukai-server.tomlsecretripper00–10000000 mana per concealmentMana cost of applying or reapplying Presence Concealment while holding both Rippers.
RIPPER_MANA_COSTmahoutsukai-server.tomlsecretripper8000–100000000 mana per creationMana cost of converting a Presence Concealment scroll into two Rippers.
SELECTIVE_DISPLACEMENT_MANA_COSTmahoutsukai-server.tomlsecretselective displacement9000–10000000 mana per castMana cost of releasing a Selective Displacement scroll.