Riding Recursive

Entity Condition

Checks whether any of the entities in the riding chain (starting from the actor entity) is the target entity.

Type ID: apoli:riding_recursive

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.
comparison Comparison ">=" How the amount of entities currently being ridden should be compared to the specified value.
compare_to Integer 1 Which value the amount of entities currently being ridden should be compared to.

Example

"condition": {
    "type": "apoli:riding_recursive",
    "bientity_condition": {
        "type": "apoli:target_condition",
        "condition": {
            "type": "apoli:entity_type",
            "entity_type": "minecraft:strider"
        },
        "comparison": ">=",
        "compare_to": 2
    }
}

This example checks if the actor entity is riding a strider that is also riding a strider (and so on).