Skip to main content

Riding action

saturn:riding_action

Runs an action on what the entity is riding, and can walk the riding chain recursively.

Runs an operation on a single entity. Used in entity action fields such as entity_action and a trigger rule's action; action arrays run in order.

JSON fields​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:riding_action
actionEntity actionno{"type":"saturn:no_op"}The sub-action to run; its kind must match what this field expects.
bientity_actionBi-entity actionno{"type":"saturn:no_op"}Action run between the two sides of the context.
bientity_conditionBi-entity conditionno{"type":"saturn:always"}Condition that filters the two sides of the context.
recursiveBooleannofalseWhether to walk the riding or passenger chain recursively.

JSON example​

{
"type": "saturn:riding_action"
}

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