Allows the mob to randomly look around.
Random Look Around Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| look_time | not set | Range of integers | The range of time in seconds the mob will stay looking in a random direction before looking elsewhere | |
| max_angle_of_view_horizontal | 30 | Integer number | The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction. | |
| min_angle_of_view_horizontal | -30 | Integer number | The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction. | |
| priority | not set | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Allay: 8, Blaze: 5, Cave Spider: 7 |
Samples
Allay
"minecraft:behavior.random_look_around": {
"priority": 8
}
Blaze
"minecraft:behavior.random_look_around": {
"priority": 5
}
Cave Spider
"minecraft:behavior.random_look_around": {
"priority": 7
}