Random Look Around¶
文档版本:1.21.50.25
Allows the mob to randomly look around.
架构¶
random_look_around:
{
priority "priority"
integer "angle_of_view_horizontal" : opt
integer "angle_of_view_vertical" : opt
number "look_distance" : opt
vector_of_2_items "look_time"
number "probability" : opt
}
priority
:priority
angle_of_view_horizontal
:integer- The angle in degrees that an entity can see in the Y-axis (up-down).
angle_of_view_vertical
:integer- The angle in degrees that an entity can see in the X-axis (left-right).
look_distance
:number- The distance in blocks from which the entity will look at.
look_time
:vector_of_2_items- The range of time in seconds the mob will stay looking in a random direction before looking elsewhere
0..0
:number- The X component.
1..1
:number- The Y component.
probability
:number- The probability of looking at the target. A value of 1.00 is 100%.