Look At Target¶
文档版本:1.21.50.25
Allows the mob to look at the entity they are targetting.
架构¶
look_at_target:
{
  priority "priority"
  number "look_distance" : opt
  number "probability" : opt
  range_number_type "look_time"
  integer "angle_of_view_vertical" : opt
  integer "angle_of_view_horizontal" : opt
}
priority:priority
look_distance:number- The distance in blocks from which the entity will look at this mob's current target.
 
probability:number- The probability of looking at the target. A value of 1.00 is 100%.
 
look_time:range_number_type- Time range to look at this mob's current target.
 
0..0:number- The first value of the range.
 
1..1:number- The second value of the range.
 
range_min:number- The minimum value of the range.
 
range_max:number- The maximum value of the range.
 
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).