Look At Trading Player¶
文档版本:1.21.50.25
Allows the mob to look at the player they are trading with.
架构¶
look_at_trading_player:
{
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 the player this mob is trading with.
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 the player this mob is trading with.
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).