minecraft:behavior.circle_around_anchor

Causes an entity to circle around an anchor point placed near a point or target.

Properties

PropertyTypeDefaultWhat it does
radius_changeDecimal1The number of blocks to increase the current movement radius by, upon successful "radius_adjustment_chance". If the current radius increases over the range maximum, the current radius will be set back to the range minimum and the entity will change between clockwise and counter-clockwise movement.
radius_adjustment_chanceDecimal0.004Percent chance to determine how often to increase the size of the current movement radius around the anchor point. 1 = 100%. "radius_change_chance" is deprecated and has been replaced with "radius_adjustment_chance".
height_adjustment_chanceDecimal0.0029Percent chance to determine how often to increase or decrease the current height around the anchor point. 1 = 100%. "height_change_chance" is deprecated and has been replaced with "height_adjustment_chance".
goal_radiusDecimal0.5Maximum distance from the anchor-point in which this entity considers itself to have reached the anchor point. This is to prevent the entity from bouncing back and forth trying to reach a specific spot.
speed_multiplierDecimal1Multiplies the speed at which this entity travels to its next desired position.
angle_changeDecimal15Number of degrees to change this entity's facing by, when the entity selects its next anchor point.
radius_rangeObject{"max": 15, "min": 5}Horizontal distance from the anchor point this entity must stay within upon a successful radius adjustment.
minDecimal0
maxDecimal0
height_offset_rangeObject{"max": 0, "min": 0}Vertical distance from the anchor point this entity must stay within, upon a successful height adjustment.
minDecimal0
maxDecimal0
height_above_target_rangeObject{"max": 0, "min": 0}The number of blocks above the target that the next anchor point can be set. This value is used only when the entity is tracking a target.
minDecimal0
maxDecimal0
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Phantom uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.circle_around_anchor": {
    "goal_radius": 1,
    "height_offset_range": {
      "min": -4,
      "max": 5
    },
    "height_above_target_range": {
      "min": 20,
      "max": 40
    },
    "priority": 3
  }
}

Used by 1

Vanilla entities with minecraft:behavior.circle_around_anchor in their definition:

Related components