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
| Field | Type | Default | Description |
|---|---|---|---|
action | Entity Action Type | optional | Runs on the entity being ridden. |
bientity_action | Bi-entity Action Type | optional | Runs with the passenger as the actor and the entity being ridden as the target. |
bientity_condition | Bi-entity Condition Type | optional | The actions only run when this passes, with the passenger as the actor and the entity being ridden as the target. |
recursive | Boolean | false | With 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.