Riding Action

Entity Action Type

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

Type ID: origins:riding_action

Note

Not to be confused with Passenger Action.

Fields

Field Type Default Description
action Entity Action Type optional If specified, this action will be executed on the entity being ridden.
bientity_action Bi-entity Action Type optional If specified, this action will be executed on either the 'actor' (the passenger entity) or the 'target' (the entity being ridden) or both.
bientity_condition Bi-entity Condition Type optional If 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.
recursive Boolean false If set to true, the specified action(s) will be executed on all entities that are being ridden.

Examples

"entity_action": {
    "type": "origins:riding_action",
    "action": {
        "type": "origins: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.