Distance
Checks the distance between the target entity and the actor entity.
Type ID: apoli: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. |
Example
"bientity_condition": {
"type": "apoli:distance",
"comparison": "<=",
"compare_to": 30
}
This condition checks if the target is at most 30 blocks away from the actor.