Riding Root

Entity Condition Type

Checks whether the actor entity is riding the target entity from the very end of the riding chain.

Type ID: origins:riding_root

Fields

Field Type Default Description
bientity_condition Bi-entity Condition Type optional If specified, it will only check for the entity/entities that fulfills the bi-entity condition.

Examples

"condition": {
    "type": "origins:riding_root",
    "bientity_condition": {
        "type": "origins:target_condition",
        "condition": {
            "type": "origins:entity_type",
            "entity_type": "minecraft:pig"
        }
    }
}

This example will check if the actor entity is riding a pig. It will also return true if the pig has an additional passenger and if the actor entity is riding that passenger.