within_radius_of

Passes when the entity is within the specified radius of a given coordinate.

Categories: world

Required arguments

Key(s)DescriptionType
xThe X coordinate of the target location.EXPRESSION
yThe Y coordinate of the target location.EXPRESSION
zThe Z coordinate of the target location.EXPRESSION
radiusThe 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