Passenger
Checks whether the actor entity is directly riding the target entity.
Type ID: apoli:passenger
Fields
| Field | Type | Default | Description |
|---|---|---|---|
bientity_condition |
Bi-entity Condition | optional | If specified, it will check for the entity/entities that fulfills the bi-entity condition. |
comparison |
Comparison | ">=" |
How the number of entities that are currently riding the entity should be compared to the specified value. |
compare_to |
Integer | 1 |
Which value the number of entities currently riding the entity should be compared to. |
Example
"condition": {
"type": "apoli:passenger",
"bientity_condition": {
"type": "apoli:actor_condition",
"condition": {
"type": "apoli:entity_type",
"entity_type": "minecraft:player"
}
}
}
This example checks if the target entity is being ridden by a player (actor entity).