Skip to main content

Riding (Entity Condition Type)

Checks whether the entity is directly riding another entity.

Type ID: apoli:riding

note

For bientity_condition, the actor is the passenger, which is the entity the condition is checked on, and the target is the entity being ridden.

Fields

FieldTypeDefaultDescription
bientity_conditionBi-entity Condition TypeoptionalThe condition only passes if the pair of entities also passes this.

Examples

"condition": {
    "type": "apoli:riding"
}

This checks whether the entity is riding anything.

"condition": {
    "type": "apoli:riding",
    "bientity_condition": {
        "type": "apoli:target_condition",
        "condition": {
            "type": "apoli:entity_type",
            "entity_type": "minecraft:minecart"
        }
    }
}

This checks whether the entity is riding a minecart.