Repository navigation
Modes
manaSystem in config/runelessrpg_bridge-server.toml decides which mod leads the shared pool. The leading mod keeps its base mana, regeneration, rules for respawn and death and its gear; the others follow (see How it works). Since 0.2.0 it can also be chosen in game: with a question at the first start, a command or a button in the config screen (see Choosing the mana system).
| RunelessRPG leads (default) | Iron's leads | Ars leads | |
|---|---|---|---|
manaSystem |
"runelessrpg" |
"irons_spellbooks" |
"ars_nouveau" |
| Base max mana | RunelessRPG baseMaxMana: 20 |
Iron's max_mana base value: 100 |
Ars baseMax: 100, plus 15 per learned glyph and 50 per spell book tier |
| Regeneration | RunelessRPG: 0.5 per second plus runelessrpg:mana_regen bonuses; Iron's mana_regen counts as a percent bonus, Ars' regeneration bonuses and progress as flat bonuses |
Iron's: 2 % of the max mana per second (mana_regen × manaRegenMultiplier); RunelessRPG's flat bonuses are paid in besides it, percent bonuses multiply it |
Ars: 5 per second plus 0.33 per glyph, 1 per spell book tier and gear; RunelessRPG's and Iron's bonuses become modifiers on Ars' regeneration |
| After a respawn | full (RunelessRPG) | Iron's manaSpawnPercent (default 0.0 = empty) |
Ars' rule: the mana of the moment of death stays (debt is cleared); mana above the max without gear can be cut |
| After a relog | unchanged | unchanged | Ars' rule: mana above the max without gear can be cut |
| Own regeneration of the followers | off for players (disableOwnRegen) |
off for RunelessRPG's and Ars' | off for Iron's |
| Gear of the other mods | Iron's and Ars bonuses and Ars progress count (converted) | RunelessRPG's and Ars bonuses and Ars progress count (converted) | RunelessRPG's and Iron's bonuses count (converted); Ars' own progress and gear work natively |
| Familiars of Ars | reserve 15 % of the shared max | reserve 15 % of the shared max | Ars' own reserve (rounded down) |
| Costs of Spell Engine spells | in RunelessRPG mana (Fireball 4) | in Iron's mana (Fireball 20) | in Ars mana (Fireball 20) |
| Costs of Iron's spells | Iron's cost × Mana Cost × 0.2 (Fireball 12) | Iron's cost × Mana Cost (Fireball 60) | Iron's cost × Mana Cost, 1 : 1 (Fireball 60) |
| Costs of Ars spells | Ars' cost × Mana Cost × 0.2 (projectile + Harm 5) | Ars' cost × Mana Cost, 1 : 1 (25) | Ars' cost × Mana Cost (25) |
| Debt | RunelessRPG's own negative mana | RunelessRPG's debt account; Iron's mana stays at 0 until the debt is paid | RunelessRPG's debt account; Ars' mana stays at 0 until the debt is paid |
Bar by default (manaDisplay = "auto") |
RunelessRPG's | Iron's | Ars' |
- RunelessRPG leads (default) fits packs where Spell Engine and the RPG Series are the main magic and Iron's or Ars spells are an extra. The pool is small (20 mana), regenerates at a fixed rate and is full after a respawn.
-
Iron's leads fits packs where Iron's is the main magic, and especially packs with many Iron's addons or with other mods that read or change Iron's mana themselves. Then Iron's own mana is the pool, and every mod that looks at Iron's mana or at the attribute
irons_spellbooks:max_manasees the real numbers. - Ars leads fits packs where Ars is the main magic, and especially packs with many Ars addons. Then Ars' own mana is the pool, Ars regenerates and grows with its progress as players know it, and addons that read Ars' mana or max mana see the real numbers.
If both Iron's and Ars are installed, let the one lead that your pack and its addons build on more. The other one follows with all its gear (and for Ars its progress), so nothing is lost either way.
I checked in the code what applies to addons. Addons are not tested one by one.
| What an addon does | Iron's follows | Iron's leads |
|---|---|---|
Its spells extend Iron's AbstractSpell
|
The cost check (canBeCastedBy) and the payment (SpellOnCastEvent in castSpell) are hooked in the base class, so addon spells pay from the shared pool with Mana Cost and the debt rules, unless an addon replaces these methods or takes mana in its own way |
Same |
It reads or changes mana through Iron's MagicData (getMana, setMana, addMana) |
Goes through the switch: it sees and changes the shared pool in Iron's units; ChangeManaEvent still fires |
MagicData is the pool itself |
It reads the attribute irons_spellbooks:max_mana
|
Iron's own value (100 plus Iron's gear), not the shared max: the gear of the other mods and their base are missing there. Effects of an addon that use "percent of max mana" can be off. The bridge only redirects Iron's own places (bar, Mana potion, regeneration) | The real max of the pool, the other mods' gear included (bridge modifiers on the attribute) |
It listens to ChangeManaEvent, SpellPreCastEvent, SpellOnCastEvent
|
Fired as before; SpellOnCastEvent reports the cost before the bridge sets it to 0 (the bridge listens last and pays through RunelessRPG) |
Same |
The same table for Ars addons is on the page Ars Nouveau. If something does not work with an addon, please report it with the output of /runelessrpg_bridge status.
(since 0.2.0) There are four ways to set manaSystem. All of them change the same value in the same file, and the change works at once, without a restart and without losing mana or debt (see Switching modes).
| Way | Who | How |
|---|---|---|
| The question at the first start | the owner of a singleplayer world (also the LAN host), or an operator on a server | a window at login; a client without the bridge gets a chat line with clickable values |
/runelessrpg_bridge manaSystem <id> |
operators (permission level 2), the server console and the owner of a singleplayer or LAN world | in chat or in the console, see Commands and bug reports |
| The config screen | singleplayer, while the world is not open to LAN | mod list → RunelessRPG Mana Bridge → Config → Server settings → General: a button that switches through the values |
| The file | whoever has access to the game or server folder |
config/runelessrpg_bridge-server.toml, section [general]
|

- It comes at login while
askForManaSystem = true(default), only to a player who may change the value, and only while Iron's or Ars is connected (so there are at least two values to choose from). - Every possible pool has a button and a line with what it brings, read from the real configs: the base max mana and the own regeneration (with the defaults RunelessRPG 20 and 0.5 per second, Iron's 100 and 2 % of the max per second, Ars 100 and 5 per second). The current value is marked "(current)".
- Every answer, also keeping the current value, sets
manaSystemand turnsaskForManaSystemoff. "Decide later" and Esc change nothing; the question comes again at the next login. - If several operators are asked at once, the first answer counts; the other windows close with " chose the mana system: …".
- A client without the bridge gets three chat lines instead; a click on a value runs the command. To answer later, just do nothing.
- The server config lies in the
configfolder of the game or the server and counts for every world, so the question comes once per installation or server, not once per world. The exception is a world with its ownserverconfig/runelessrpg_bridge-server.toml: NeoForge uses that file for this world, also for the question.

Pack makers: ship config/runelessrpg_bridge-server.toml with askForManaSystem = false and the manaSystem of your choice; then nobody is asked.

- The button offers RunelessRPG and every installed mod whose adapter is connected and can lead. The tooltip of each value shows its base max mana and regeneration and "Leads right now" for the current leader.
- A value in the file that does not work right now (the mod is missing, its adapter is off, a chain with Ars 'n Spells) stays in the file and shows as "… (not available)" with the reason; RunelessRPG leads until it works. Clicking through the values comes back to it.
- NeoForge lets the config screen edit the server config only in a singleplayer world that is not open to LAN. In the main menu the server settings are not loaded yet, and on a server or with LAN open they are greyed out; use the command there.
config/runelessrpg_bridge-server.toml:
[general]
manaSystem = "runelessrpg"Nothing else is needed. RunelessRPG's baseMaxMana and baseManaRegen set the pool; the gear of Iron's and Ars and Ars' progress count through the bridge.
config/runelessrpg_bridge-server.toml:
[general]
manaSystem = "irons_spellbooks"config/irons_spellbooks-server.toml (Iron's own config): Iron's empties the mana after a respawn by default. To start full after a respawn, as with RunelessRPG:
[Misc]
manaSpawnPercent = 1.0manaSpawnPercent is a share of Iron's max mana at the moment of the respawn (before gear is applied again), as Iron's does it without the bridge. Iron's regeneration speed is Iron's manaRegenMultiplier in the same section.
config/runelessrpg_bridge-server.toml:
[general]
manaSystem = "ars_nouveau"Nothing else is needed. Ars regenerates as usual (5 per second plus 0.33 per glyph, 1 per spell book tier and gear), and its progress, gear and familiars work as without the bridge. Ars' base values are in config/ars_nouveau-server.toml (baseMax, baseRegen, glyphmax, tierMax, glyphRegen, tierRegen); baseMax also sets the automatic factor.
While Ars leads, Ars' own rules apply to the pool:
- Death: Ars keeps the mana a player had at the moment of death; RunelessRPG clears the debt on death.
- Relog and respawn: Ars computes the max before the gear counts again. If Ars' first regeneration step comes before that (it depends on the tick in which you log in or respawn), Ars cuts the mana to the max without gear (with Mana Boost III a full 175 can become 100). This is Ars' own behavior, also without the bridge.
- RunelessRPG's
baseMaxManaandbaseManaRegenhave no effect on the pool.baseMaxManastill sets the automatic factors (baseMaxMana = 10→ factor 0.1, so Spell Engine spells cost ten times their RunelessRPG cost in Iron's or Ars mana). - Spell Engine spells cost five times their RunelessRPG cost: Fireball 20, Fire Meteor 50, Frost Blizzard 140. RunelessRPG's spell tooltip shows these numbers.
- RunelessRPG's potions and mana orbs still give a percent of the max mana, now of the leading mod's max.
- RunelessRPG's enchantments, affixes and gear with
runelessrpg:max_manaorrunelessrpg:mana_regencount (+25 → +125 max mana). - The mod that does not lead follows: Iron's spells pay 1 : 1 while Ars leads, Ars spells pay 1 : 1 while Iron's leads.
| RunelessRPG leads | Iron's leads | Ars leads | |
|---|---|---|---|
| Base | 0.5 RunelessRPG mana per second | 2 % of Iron's max mana per second (with 100 max: 2 Iron's mana = 0.4 RunelessRPG mana) | 5 Ars mana per second (= 1 RunelessRPG mana), plus 0.33 per glyph and 1 per spell book tier |
Flat bonuses of RunelessRPG (runelessrpg:mana_regen + value) |
added to RunelessRPG's regeneration | paid into Iron's pool, converted (+0.25 → +1.25 Iron's mana per second) | a modifier on Ars' regeneration, converted (+0.25 → +1.25 Ars mana per second) |
| Percent bonuses of RunelessRPG | multiply RunelessRPG's regeneration | multiply Iron's regeneration | multiply Ars' regeneration |
Iron's mana_regen bonuses (staves, Amethyst Resonance Charm) |
multiply RunelessRPG's regeneration | Iron's own | multiply Ars' regeneration |
| Ars bonuses (Mana Regen, potion) and progress | added, converted (+4 Ars → +0.8 per second) | added, 1 : 1 | Ars' own |
Iron's regeneration grows with the max mana, RunelessRPG's does not, and Ars' grows with its progress. A player with a lot of Iron's max mana or many Ars glyphs fills up differently while another mod leads; if that does not fit, let that mod lead.
Iron's and Ars mana cannot go below 0. RunelessRPG keeps the debt in its own debt account (in RunelessRPG mana), so DEBT, DEBT_LIMIT and Borrowed Power work in every mode:
- If the pool is not enough, the leading mod's mana goes to 0 and the rest goes onto the account.
- Everything that comes into the pool afterwards pays the debt first: the leading mod's own regeneration, potions of all mods, RunelessRPG's mana orbs. The leading mod's mana stays at 0 until the debt is paid.
- Borrowed Power's backlash follows the account. Death clears it, logout keeps it.
- Iron's and Ars bars show 0 during the debt; RunelessRPG's bar appears with the minus (see Display).
Whether Iron's and Ars spells may go into debt at all is foreignSpellsUseDebt (default true): then they follow the same rules as Spell Engine spells.

- At runtime (with the command, the question, the config screen or a changed file while the server runs): every online player keeps their mana and debt, in every direction (RunelessRPG, Iron's and Ars). RunelessRPG moves the current value into the new pool (at most its max; a minus goes onto the debt account). Clients get the new leader at once. Ars' whole-number max can round a full pool down by up to 0.2 RunelessRPG mana (79.86 → 79.8).
-
While the server is stopped: only online players are moved. After a restart with a different
manaSystem, every player starts with the value the new pool last had (for Iron's and Ars their last saved mana). Debt in RunelessRPG's own pool stays there until RunelessRPG leads again. If you change the mode on a running world, do it while the server runs. - If the chosen mod cannot lead (adapter off, self test failed, another bridge active, or a chain with Ars 'n Spells in which its adapter is off), RunelessRPG leads with one warning in the log, and
/runelessrpg_bridge statusshows the reason.
RunelessRPG Mana Bridge for NeoForge 1.21.1 · CurseForge · Source · Report a bug
Start
For players
For pack makers
Reference