Skip to content

Latest commit

 

History

History
88 lines (77 loc) · 5.02 KB

minecraftBehavior_random_look_around.md

File metadata and controls

88 lines (77 loc) · 5.02 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:behavior.random_look_around
A reference document detailing the 'behavior.random_look_around' entity goal
minecraft-bedrock-edition

Entity Documentation - minecraft:behavior.random_look_around

minecraft:behavior.random_look_around compels an entity to choose a random direction to look in for a random duration within a range.

Parameters

Name Default Value Type Description
angle_of_view_horizontal 360 Integer The angle in degrees that an entity can see in the Y-axis (up-down).
angle_of_view_vertical 360 Integer The angle in degrees that an entity can see in the X-axis (left-right).
look_distance 8.0 Float The distance in blocks from which the entity will look at.
look_time [2, 4] Range [a, b] The range of time in seconds the mob will stay looking in a random direction before looking elsewhere.
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
probability 0.2 Float The probability of looking at the target. A value of 1.00 is 100%.

Example

"minecraft:behavior.random_look_around":{
    "priority": 2,
    "look_time": [1,5]
}

Vanilla entities examples

blaze

"minecraft:behavior.random_look_around": {
        "priority": 5
      }

Vanilla entities using minecraft:behavior.random_look_around