Skip to main content

Lifespan

Reincarnation is optional. When installed, it manages lifespan and reincarnation, and MiXianTu displays its information row. Data packs can configure lifespan changes in breakthrough success actions. Cultivation works without it; lifespan integration content must be excluded with loading conditions. Each body stores remaining lifespan and the total granted in this life, both in game ticks. The default display scale is 24000 ticks per year; it only changes presentation.

Where the Numbers Come From​

SourceBehaviour
Reincarnation base lifespanWhen automatic lifespan is enabled, players receive 1440000 ticks by default, displayed as 60 years; 0 disables automatic grants
success_action on a realm stageA configured lifespan action runs when a breakthrough reaches that stage; arrays combine it with other success actions
reincarnation:add_lifespan / reincarnation:remove_lifespanNon-negative amounts grant or spend life; grants raise both numbers, removal spends only the remainder
Commands and ReincarnationLifespanAdministrator or server script writes

A body without a ledger is unaccounted for; ordinary mobs do not all receive ledgers automatically. Adding zero creates nothing, and spending clamps at 0. A closed ledger can receive finite life again through set/add.

How the Server Settles It​

Natural ageing is disabled by default. In Reincarnation server settings, Lifespan → Enable lifespan controls automatic grants, settlement and warnings. Explicit command, action and script writes remain available.

The default settlement spends 20 lifespan ticks every 20 game ticks. Only online entities receiving ticks age; offline time is never charged. Creative and spectator players are excluded by default and have separate switches. Reaching or falling below the warning fraction sends one chat warning.

After It Runs Out​

Reincarnation server settings, Lifespan → On expiry, choose the outcome.

ChoiceBehaviour
noneClose the ledger and publish the expiry notification
deathUse Player death mode to kill or switch to spectator; non-player beings are killed
reincarnateUse Player rebirth mode for a new life or an in-place reset; non-player beings always reset in place

A kill uses the reincarnation:lifespan damage type and follows the death flow. It belongs to mxt:no_bonus, excluding elemental damage bonuses. Ordinary death respawns keep the same-life ledger. Reincarnation's automatic death rebirth setting can turn the subsequent respawn into a new life.

A new life archives the previous one, advances the life number, replaces the player and grants the configured base lifespan. An in-place reset keeps the entity and life number, reopens the ledger and applies the cultivation rules below. Requests run at the end of the server tick; an accepted command or script call is not a completion notification.

lifespanEnd.Pre can cancel expiry. Granting positive life during the callback continues ageing; cancellation without renewal closes the ledger to avoid repeated expiry. Rebirth also passes through cancellable lifespanRebirth.Pre; Post and Failed report completion and failure. See ReincarnationEvents.

Character Panel​

The character panel and Reincarnation archives share the lifespan row. An unaccounted body has no row, a closed ledger shows Unlimited, and a finite ledger remains visible while natural ageing is disabled. The display is age / total lifespan. Age is total minus remaining life and increases from zero. Extending lifespan raises the limit without changing age; rebirth starts age at zero. Ticks per year in Reincarnation controls display; 1 shows ticks. Past lives retain the lifespan captured in their archive.

Server Config​

Reincarnation Lifespan​

These settings belong to Reincarnation's Lifespan tab.

SettingDefaultEffect
Enable lifespanoffAutomatic grants, settlement and warnings
Base lifespan (ticks)1440000Initial and new-life grant; 0 disables automatic grants
Settlement interval20Game ticks between settlements
Age per settlement20Ticks spent per settlement; 0 disables natural ageing
On expirydeathnone / death / reincarnate
Player death modekillKill or switch to spectator
Player rebirth modenew lifeNew life or in-place reset
Warning threshold0.1Warn once on a downward crossing; 0 disables it
Ticks per year24000Display conversion only; 1 shows ticks
Age creative playersoffWhether creative players age
Age spectator playersoffWhether spectator players age

Reincarnation Retention​

Reincarnation handles attachment cleanup for new lives and in-place resets. Cultivation, minor stages, tribulations, identities, techniques and soul values clear by default. In-place reset keeps the entity and life number; vanilla inventory, experience and progress are only reset by a full new life.

Reincarnation settingDefaultEffect
Lifespan → Kill on in-place resetoffKill with lifespan damage after an in-place reset; never kill the new player after a full rebirth
Reincarnation Reset → Clear resource valuesonClear Saturn resource values; disable to preserve their attachment

Use reincarnation:keep_on_rebirth to retain selected attachments. They must also support copying on death. For example, a data pack can preserve roots, physiques, techniques and soul values with:

data/reincarnation/tags/neoforge/attachment_types/keep_on_rebirth.json

{
"replace": false,
"values": ["mxt:spirit_identity", "mxt:technique", "mxt:soul_stats"]
}

This tag also supports mxt:cultivation, mxt:minor_stages, mxt:tribulation and saturn:resource_holder. A tagged resource attachment survives even when resource clearing is enabled. Resetting unknown mod data overrides both the tag and resource retention. Full rebirth freezes the selected attachment IDs in its archive, so recovery does not reread later tag or configuration changes.

Herb catch-up uses Server Config → Alchemy → Herb catch-up limit (ticks), default 24000, independently of lifespan display conversion.