DualExp is a Minecraft mod that separates the traditional XP system into two distinct roles: Level, used for gating access to features like enchanting, and Currency, used for spending experience on actions. This decoupling allows more precise control over progression mechanics and paves the way for modpacks or datapacks to define their own experience usage models.
By default, XP orbs contribute to both roles simultaneously, but mod developers and pack creators can fully customize how experience is earned, stored, and consumed. DualExp provides a lightweight yet extensible API for accessing, syncing, and manipulating both XP roles independently.
Ideal for RPG systems, custom economies, or any mod that wants to treat XP as more than just a single pool.
Still updating
Separate the leveling use of experience points (XP) from their spendable use. A new attribute is independently attached to the player: I call it rune (a symbolic or mystical unit). In this document, we’ll refer to it simply as "rune."
This mod is particularly suited for modpacks where many mods interact with XP mechanics at the player level. Therefore, the mod intercepts vanilla XP behavior at a relatively low level:
/xp command only affects XP level; rune is managed through a separate command /rune (configurable).This mod intercepts vanilla XP behavior using Mixin:
/xp affects only XP; a new /rune command (renameable) manages rune.keepInventory rule.