跳转至

Look At Target

文档版本:1.21.0.24

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
}
prioritypriority
priority:
integer
look_distancenumber
The distance in blocks from which the entity will look at.
probabilitynumber
The probability of looking at the target. A value of 1.00 is 100%
look_timerange_number_type
Time range to look at the entity.
range_number_type:
number
range_number_type:
array
{
  number "0..0" : opt
  number "1..1" : opt
}
0..0number
The first value of the range.
1..1number
The second value of the range.
range_number_type:
{
  number "range_min" : opt
  number "range_max" : opt
}
range_minnumber
The minimum value of the range.
range_maxnumber
The maximum value of the range.
angle_of_view_verticalinteger
The angle in degrees that the mob can see in the X-axis (left-right).
angle_of_view_horizontalinteger
The angle in degrees that the mob can see in the Y-axis (up-down).