Look At Player¶
文档版本:1.21.50.25
Allows the mob to look at the player when the player is nearby.
架构¶
look_at_player:
{
priority "priority"
integer "angle_of_view_vertical" : opt
integer "angle_of_view_horizontal" : opt
number "look_distance" : opt
number "probability" : opt
array "look_time" : opt
{
number "0..0" : opt
number "1..1" : opt
}
number "target_distance" : opt
}
priority
:priority
angle_of_view_vertical
:integer- The angle in degrees that the mob can see in the X-axis (left-right).
angle_of_view_horizontal
:integer- The angle in degrees that the mob can see in the Y-axis (up-down).
look_distance
:number- The distance in blocks from which the entity will look at.
probability
:number- The probability of looking at the target. A value of 1.00 is 100%.
look_time
:array- Time range to look at the nearest player.
look_time
0..0
:number- The minimum amount of time to look.
1..1
:number- The maximum amount of time to look.
target_distance
:number- The distance in blocks from which the entity will choose a target.