Passenger (Entity Condition Type)
Compares how many passengers are riding the entity with a number.
Type ID: apoli:passenger
note
For bientity_condition, each passenger is the actor, and the entity the condition is checked on is the target.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
bientity_condition | Bi-entity Condition Type | optional | Only passengers that pass this condition are counted. |
comparison | Comparison | ">=" | How the number of passengers is compared with compare_to. |
compare_to | Integer | 1 | The number the passenger count is compared with. |
Examples
"condition": {
"type": "apoli:passenger",
"bientity_condition": {
"type": "apoli:actor_condition",
"condition": {
"type": "apoli:entity_type",
"entity_type": "minecraft:player"
}
}
}This checks whether a player is riding the entity.