Skip to main content

Targeted

saturn:targeted

Selects a target and then casts the referenced ability on it.

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​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:targeted
target_selectorTarget selectoryes—Selector that obtains the ability's target.
abilityResource IDyes—Ability ID or tool ability, distinguished by the field type.
cooldownNumber providerno0.0Cooldown length, in game ticks.

JSON example​

{
"type": "saturn:targeted",
"target_selector": {
"type": "saturn:self"
},
"ability": "example:heal"
}

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.TargetedAbilityType. This page is based on the Codec in the current 26.1.2 source.