Active ability
saturn:active
Used by the player on purpose; runs its actions after the cast, cost and cooldown flow.
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:active |
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. |
cooldown | Number provider | no | 0.0 | Cooldown length, in game ticks. |
JSON example
{
"type": "saturn:active"
}
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.ActiveAbilityType. This page is based on the Codec in the current 26.1.2 source.