minecraft:behavior.random_look_around_and_sit

Allows the mob to randomly sit and look around for a duration. Note: Must have a sitting animation set up to use this.

Properties

PropertyTypeDefaultWhat it does
min_look_timeInteger20The min amount of time (in ticks) a mob will stay looking at a direction while looking around.
max_look_timeInteger40The max amount of time (in ticks) a mob will stay looking at a direction while looking around.
continue_sitting_on_reloadBooleanfalseThe mob will stay sitting on reload.
continue_if_leashedBooleanfalseIf the goal should continue to be used as long as the mob is leashed.
min_look_countInteger1The min amount of unique looks a mob will have while looking around.
max_look_countInteger2The max amount of unique looks a mob will have while looking around.
random_look_around_cooldownInteger0The cooldown in seconds before the goal can be used again.
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 Camel uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.random_look_around_and_sit": {
    "priority": 4,
    "continue_if_leashed": true,
    "continue_sitting_on_reload": true,
    "min_look_count": 2,
    "max_look_count": 5,
    "min_look_time": 80,
    "max_look_time": 100,
    "min_angle_of_view_horizontal": -30,
    "max_angle_of_view_horizontal": 30,
    "random_look_around_cooldown": 5,
    "probability": 0.001
  }
}

Used by 3

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

Related components