Riding Action (Entity Action Type)

Executes an action on the entity/entities that's being ridden by the entity.

Executes an action on the entity/entities that’s being ridden by the entity.

Type ID: apoli:riding_action

!!! note

Not to be confused with Passenger Action.

Fields

FieldTypeDefaultDescription
actionEntity Action TypeoptionalIf specified, this action will be executed on the entity being ridden.
bientity_actionBi-entity Action TypeoptionalIf specified, this action will be executed on either the ‘actor’ (the passenger entity) or the ‘target’ (the entity being ridden) or both.
bientity_conditionBi-entity Condition TypeoptionalIf specified, only execute the specified actions if this condition is fulfilled by either the ‘actor’ (the passenger entity) or the ‘target’ (entity being ridden) or both.
recursiveBooleanfalseIf set to true, the specified action(s) will be executed on all entities that are being ridden.

Examples

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

This example will apply a Speed II status effect to the entity that is currently being ridden by the entity that executed the entity action type.