Skip to main content

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

FieldTypeDefaultDescription
bientity_conditionBi-entity Condition TypeoptionalOnly passengers that pass this condition are counted.
comparisonComparison">="How the passenger count is compared with compare_to.
compare_toInteger1The 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.