Skip to main content

Lifespan

Age and lifespan​

The lifespan ledger records remaining ticks and total ticks granted in this life. Age is the difference between the two. Extending a finite lifespan adds to both values and leaves age unchanged. The archive and /lifespan get display age / total lifespan. By default, 24000 ticks display as one year.

Natural ageing is off by default. Enable it in the Lifespan settings to seed players with the configured initial amount. By default, each living, ticking entity with a finite ledger spends 20 lifespan ticks every 20 game ticks. Players do not age offline. Creative and spectator players are excluded from ageing by default. Ordinary mobs can receive a ledger through commands, data pack actions or scripts.

Ordinary death and respawn preserve the same ledger. Full rebirth begins a fresh ledger when natural ageing is enabled. Explicit in-place resets start with the configured base amount, even while natural ageing is disabled. Use /lifespan unlimited to close a ledger. Explicit set or a positive add can reopen it.

Outcomes on expiry​

OutcomeEffect
noneClose the ledger and issue the expiry event.
deathKill the entity with reincarnation:lifespan damage. Players can be switched to spectator instead. A player killed by lifespan damage follows the normal death and respawn flow, including automatic rebirth if enabled.
reincarnateUse the configured player mode. New life archives and replaces the player. Reset in place retains the entity and life number, resets attachments governed by the retention rules, and renews the ledger. Other living entities reset in place.

To intercept expiry or grant an extension, use the expiry event.

Settings​

These keys belong to the lifespan section of the server config.

KeyDefaultEffect
enabledOffEnable automatic grants, ageing, expiry settlement and low-life warnings.
base_lifespan1440000Initial grant in ticks, displayed as 60 years by default. Zero disables an automatic finite grant.
settle_interval20Game ticks between settlements.
age_per_settle20Lifespan ticks spent per settlement. Zero stops age from advancing.
on_expiredeathOutcome when the remaining lifespan reaches zero.
player_death_modekillKill the player or switch them to spectator.
player_rebirth_modenew_lifeChoose a full new life or an in-place reset.
warning_fraction0.1Warn once when the finite remainder reaches or falls below this share of the total. Going above the threshold rearms the warning. Zero disables warnings.
ticks_per_year24000Display unit only. Set to 1 to display ticks.
age_creativeOffInclude creative players in ageing.
age_spectatorOffInclude spectator players in ageing.
kill_on_resetOffDeal lifespan damage to the entity after an in-place reset.