WhileEntityWithin

Docs Behaviors

Effect

Ticks the given child behavior while entity is within range.


Attributes

  • child (Behavior): use inside the element instead of as an attribute.
  • target (string, default null): name of entity it's looking for (if unset, checks for player)
  • range (double, default 10): range of area for entity to be within

Examples

<Behavior type="WhileEntityWithin" target="Pirate" range="30"> <Behavior target="Pirate">Orbit</Behavior> </Behavior>