Riding Recursive

Entity Condition Type

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

Type ID: origins:riding_recursive

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.
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.

Examples

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

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