Passenger Recursive (Entity Condition Type)
Compares how many passengers are riding the entity, counting the passengers' passengers too, with a number.
Type ID: apoli:passenger_recursive
note
For bientity_condition, each passenger (and each of its passengers) 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 passenger count is compared with compare_to. |
compare_to | Integer | 1 | The number the passenger count is compared with. |
Examples
"condition": {
"type": "apoli:passenger_recursive",
"bientity_condition": {
"type": "apoli:actor_condition",
"condition": {
"type": "apoli:entity_type",
"entity_type": "minecraft:armor_stand"
}
},
"comparison": ">=",
"compare_to": 2
}This checks whether the entity is ridden by at least two armor stands, such as one armor stand riding another.