Passenger

Entity Condition Type

Checks whether the actor entity is directly riding the target entity.

Type ID: origins:passenger

Fields

Field Type Default Description
bientity_condition Bi-entity Condition Type optional If specified, it will check for the entity/entities that fulfills the bi-entity condition.
comparison Comparison ">=" How the number of entities that are currently riding the entity should be compared to the specified value.
compare_to Integer 1 Which value the number of entities currently riding the entity should be compared to.

Examples

"condition": {
    "type": "origins:passenger",
    "bientity_condition": {
        "type": "origins:actor_condition",
        "condition": {
            "type": "origins:entity_type",
            "entity_type": "minecraft:player"
        }
    }
}

This example will check if the target entity is being ridden by a player (actor entity).