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.
| Type | Purpose |
|---|---|
saturn:empty | Provides an implementation that performs no additional behaviour. |
saturn:cooldown | Stores the cooldown start time and duration. |
saturn:charges | Stores the maximum charges, the recharge interval and the charges currently remaining. |
saturn:toggle | Stores a mutable on/off state. |
saturn:timer | Stores the duration and the tick at which the timer ends. |
saturn:resource | Stores a resource reference and the corresponding amount; an object without values only declares the storage type. |
saturn:target_lock | Stores the locked target and the usable distance. |
saturn:container | Stores the contents of runtime item slots. |
saturn:cast_deadline | Stores the time at which casting ends. |
saturn:channel_pulse | Stores the time of the next channelled execution. |
saturn:active_state | Stores a runtime activation flag. |
saturn:entry_began | Stores whether a timeline node has already begun. |
saturn:idle_countdown | Stores the remaining ticks of a wait node. |
saturn:wait_countdown | Stores the remaining ticks of a condition wait node. |