Experience Magic Core (ExpToMana)
Experience Magic Core is a modular balance mod for Minecraft 1.21.1 (NeoForge) that turns player experience into a universal resource for magic.
It integrates Iron's Spells 'n Spellbooks and the Spell Engine RPG series, replacing free mana regeneration and missing runes with an XP-based resource system.
Core Features
XP-Powered Mana
For Iron's Spells 'n Spellbooks:
- Mana regeneration consumes player XP at a configurable ratio.
- All existing mana regeneration bonuses and attributes remain fully functional.
- Higher regeneration means faster XP consumption.
- Mana regeneration stops when the player runs out of XP.
XP as Runes
For Spell Engine and compatible RPG Series mods:
- Missing runes can be replaced with XP when casting spells.
- Default cost: 21 XP per missing rune.
- Rune-saving or infinite-casting effects can reduce the cost to 7 XP.
Emergency Casting
When mana is insufficient, spells can optionally consume XP directly.
If XP is also unavailable, additional payment methods can be enabled:
- Health: missing mana is paid with HP.
- Hunger: missing mana is converted into food exhaustion according to the configured ratio.
Magical Exhaustion
Attempting to cast without enough resources can trigger a magical backlash.
When enabled, a failed cast may inflict:
- Weakness II — 5 minutes
- Darkness — 3 minutes
- Wither — 2 minutes
- Additional sound and visual effects
This makes resource management an important part of powerful spellcasting.
Configuration
All major mechanics are configurable through the in-game config menu or:
config/experience_magic_core.toml
| Option | Default | Description |
|---|---|---|
manaToXpRatio |
1.0 |
XP consumed per mana point |
runeXpCost |
21 |
XP cost per missing rune |
runeDiscountXpCost |
0 |
Reduced rune cost |
enableEmergencyCast |
true |
Allows casting with insufficient mana |
enableBloodPayment |
false |
Allows HP to cover missing resources |
bloodPaymentRatio |
1.0 |
HP consumed per missing mana point |
enableHungerPayment |
false |
Allows hunger to cover missing resources |
hungerPaymentRatio |
2.0 |
Mana covered per food point |
enableMagicalExhaustion |
true |
Enables magical backlash |
Compatibility
Designed to work with:
- Iron's Spells 'n Spellbooks and its addons
- Spell Engine / RPG Series, including Wizards, Paladins & Priests, Rogues & Warriors, Witcher, Relics and Runes
- Custom mana/resource HUDs
- Multiplayer and dedicated servers
The system is server-authoritative, making it suitable for multiplayer environments.
License
Released under the MIT License.
You are free to include Experience Magic Core in CurseForge or Modrinth modpacks, use it in videos, and modify the project for your own purposes.

