within_radius_of
Passes when the entity is within the specified radius of a given coordinate.
Categories: world
Required arguments
| Key(s) | Description | Type |
|---|---|---|
x | The X coordinate of the target location. | EXPRESSION |
y | The Y coordinate of the target location. | EXPRESSION |
z | The Z coordinate of the target location. | EXPRESSION |
radius | The maximum distance from the target location. | EXPRESSION |
Example
conditions:
- id: within_radius_of
args:
x: <value>
y: <value>
z: <value>
radius: 15 + %level% * 0.5