Riding Root
Checks whether the actor entity is riding the target entity from the very end of the riding chain.
Type ID: apoli:riding_root
Fields
| Field | Type | Default | Description |
|---|---|---|---|
bientity_condition |
Bi-entity Condition | optional | If specified, it will only check for the entity/entities that fulfills the bi-entity condition. |
Example
"condition": {
"type": "apoli:riding_root",
"bientity_condition": {
"type": "apoli:target_condition",
"condition": {
"type": "apoli:entity_type",
"entity_type": "minecraft:pig"
}
}
}
This example checks 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.