Distance (Bi-Entity Condition Type)
Compares the distance between the actor and the target, in blocks, with a number.
Type ID: apoli:distance
Fields
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | How the distance is compared with compare_to. |
compare_to | Float | required | The number the distance is compared with. |
Examples
"bientity_condition": {
"type": "apoli:distance",
"comparison": "<=",
"compare_to": 30
}This checks whether the target is within 30 blocks of the actor.