Interval
saturn:interval
Runs its action at the given tick interval while the ability is active.
The ability type is written at the top level of the ability definition, alongside common fields such as costs and condition; do not nest another type object. For the common fields of an ability file, see Ability definitions.
JSON fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:interval |
interval | Number provider | no | 20 | Execution interval, in game ticks. |
entity_action | Entity action | no | {"type":"saturn:no_op"} | Entity action run on the ability holder or the context entity. |
target_selector | Target selector | no | {"type":"saturn:self"} | Selector that obtains the ability's target. |
target_condition | Bi-entity condition | no | {"type":"saturn:always"} | Bi-entity condition that filters the actor and candidate targets. |
bi_entity_action | Bi-entity action | no | {"type":"saturn:no_op"} | Bi-entity action run on the actor and target. |
JSON example
{
"type": "saturn:interval"
}
This is a value to embed in the corresponding field, not a standalone loadable data pack file. The example: references in the examples must be replaced with defined entries.
Java entry point
com.iafenvoy.saturn.data.ability.type.IntervalAbilityType. This page is based on the Codec in the current 26.1.2 source.