Skip to main content

State storage

DataStorage is the codec for runtime state, not a standalone data pack registry. Ability types declare the state they need; the host creates, ticks and persists it, and calls markDirty after changes.

TypePurpose
saturn:emptyProvides an implementation that performs no additional behaviour.
saturn:cooldownStores the cooldown start time and duration.
saturn:chargesStores the maximum charges, the recharge interval and the charges currently remaining.
saturn:toggleStores a mutable on/off state.
saturn:timerStores the duration and the tick at which the timer ends.
saturn:resourceStores a resource reference and the corresponding amount; an object without values only declares the storage type.
saturn:target_lockStores the locked target and the usable distance.
saturn:containerStores the contents of runtime item slots.
saturn:cast_deadlineStores the time at which casting ends.
saturn:channel_pulseStores the time of the next channelled execution.
saturn:active_stateStores a runtime activation flag.
saturn:entry_beganStores whether a timeline node has already begun.
saturn:idle_countdownStores the remaining ticks of a wait node.
saturn:wait_countdownStores the remaining ticks of a condition wait node.