minecraft:behavior.random_look_around

Allows the mob to randomly look around.

Properties

PropertyTypeDefaultWhat it does
look_timeObject{"max": 40, "min": 20}The range of time in seconds the mob will stay looking in a random direction before looking elsewhere
minInteger0
maxInteger0
min_angle_of_view_horizontalDecimal-180The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction.
max_angle_of_view_horizontalDecimal180The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction.
probabilityDecimal0.02The probability of randomly looking around.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

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

{
  "minecraft:behavior.random_look_around": {
    "look_distance": 8,
    "priority": 5
  }
}

Used by 55

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

Related components