Skip to main content

Data packs

Entity actions​

Use these types in any Saturn entity action field.

TypeFieldsEffect
reincarnation:add_lifespanRequired amount (NumberProvider)Add ticks to remaining and total lifespan.
reincarnation:remove_lifespanRequired amount (NumberProvider)Spend remaining ticks down to zero. The total stays the same.
reincarnation:unlimited_lifespanNoneClose the ledger.
reincarnation:reincarnateOptional mode and reasonQueue rebirth. mode defaults to configured and also accepts new_life and reset. reason is a chat component. Non-player entities reset in place.

The first two actions accept a finite, non-negative result in ticks and round it with Math.round. Zero leaves the ledger as it was. These actions affect living entities and can write while natural ageing is disabled.

{ "type": "reincarnation:add_lifespan", "amount": 2400 }
{ "type": "reincarnation:reincarnate", "mode": "new_life", "reason": { "text": "A new beginning" } }

Entity conditions​

TypeFieldsBehaviour
reincarnation:lifespanRequired comparison and compare_to, optional fieldCompare a finite ledger. field defaults to remaining and also accepts total, spent (total minus remaining), and fraction (remaining divided by total, or zero when total is zero).
reincarnation:lifespan_stateRequired statefinite includes zero. unlimited includes unaccounted and closed ledgers. unaccounted selects entities without an initialized ledger. expired selects a remainder of zero.
reincarnation:generationRequired comparison and compare_toCompare a server player's displayed life number, starting at 1.

Supported comparison operators are <, <=, >, >=, == and !=.

{ "type": "reincarnation:lifespan", "field": "fraction", "comparison": "<", "compare_to": 0.1 }

Formula variables​

lifespan_remaining and lifespan_total read the corresponding value in ticks from the caster, falling back to the context player when there is no caster. Negative ledger values and contexts without an entity return NaN. A closed ledger therefore gives NaN for the remainder and 0 for the total.

Death filter​

With automatic death rebirth and death filtering both enabled, only damage types in reincarnation:reincarnate_on_death start a new life on respawn. The example adds fall damage alongside the built-in lifespan damage type.

data/reincarnation/tags/damage_type/reincarnate_on_death.json
{
"replace": false,
"values": ["minecraft:fall"]
}

Attachment retention​

List the entity attachment types to keep in reincarnation:keep_on_rebirth. An attachment must support NeoForge death copying to qualify. Reincarnation records the chosen IDs with each full-rebirth archive and uses those IDs during transaction recovery. Clearing unknown mod data takes precedence over the tag and Saturn resource retention.

data/reincarnation/tags/neoforge/attachment_types/keep_on_rebirth.json
{
"replace": false,
"values": ["saturn:resource_holder"]
}

Life archive rows​

The archive uses Saturn information groups and rows. The built-in group and its row tag are both reincarnation:life. Extend that row tag to add entries to the life group. The expression {"type":"reincarnation:lifespan"} renders the age and total from the selected snapshot and omits unaccounted entities. Use {"type":"reincarnation:life","value":"generation"} for the displayed life number and "value":"reason" for the recorded reason.