Distance

Bi-entity Condition Type

Checks the distance between the target entity and the actor entity.

Type ID: origins:distance

Fields

Field Type Default Description
comparison Comparison How to compare the distance against the specified value.
compare_to Float The distance (in blocks) to compare the distance between the actor and target to.

Examples

"bientity_condition": {
    "type": "origins:distance",
    "comparison": "<=",
    "compare_to": 30
}

This example will check if the target entity is within 30 blocks radius relative from the actor entity.