minecraft:behavior.circle_around_anchor
Causes an entity to circle around an anchor point placed near a point or target.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
radius_change | Decimal | 1 | The 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_chance | Decimal | 0.004 | Percent 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_chance | Decimal | 0.0029 | Percent 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_radius | Decimal | 0.5 | Maximum 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_multiplier | Decimal | 1 | Multiplies the speed at which this entity travels to its next desired position. |
angle_change | Decimal | 15 | Number of degrees to change this entity's facing by, when the entity selects its next anchor point. |
radius_range | Object | {"max": 15, "min": 5} | Horizontal distance from the anchor point this entity must stay within upon a successful radius adjustment. |
min | Decimal | 0 | |
max | Decimal | 0 | |
height_offset_range | Object | {"max": 0, "min": 0} | Vertical distance from the anchor point this entity must stay within, upon a successful height adjustment. |
min | Decimal | 0 | |
max | Decimal | 0 | |
height_above_target_range | Object | {"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. |
min | Decimal | 0 | |
max | Decimal | 0 | |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.floatbehavior.random_swimbehavior.swim_idlebehavior.swim_wanderbehavior.use_kinetic_weaponbehavior.move_to_waterbehavior.teleport_to_ownerbehavior.float_wanderbehavior.go_homebehavior.random_hoverbehavior.slime_floatbehavior.slime_keep_on_jumpingbehavior.slime_random_directionbehavior.move_to_landbehavior.move_to_random_blockbehavior.dragonholdingpatternbehavior.dragonlandingbehavior.dragontakeoffbehavior.explore_outskirtsbehavior.find_underwater_treasurebehavior.move_to_blockbehavior.move_to_liquidbehavior.random_breachbehavior.random_fly