Skip to main content

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

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