Skip to main content

Riding Action (Entity Action Type)

Runs an action on the entity this entity is riding.

Type ID: apoli:riding_action

note

For the opposite direction, the entities riding this one, see Passenger Action.

Fields

FieldTypeDefaultDescription
actionEntity Action TypeoptionalRuns on the entity being ridden.
bientity_actionBi-entity Action TypeoptionalRuns with the passenger as the actor and the entity being ridden as the target.
bientity_conditionBi-entity Condition TypeoptionalThe actions only run when this passes, with the passenger as the actor and the entity being ridden as the target.
recursiveBooleanfalseWith true, the actions run on every entity further down the stack as well, not only the one the entity rides directly.

Examples

"entity_action": {
    "type": "apoli:riding_action",
    "action": {
        "type": "apoli:apply_effect",
        "effect": {
            "effect": "minecraft:speed",
            "duration": 100,
            "amplifier": 1
        }
    }
}

This gives Speed II for 5 seconds to the entity that the entity running the action is riding.