跳转至

Random Look Around And Sit

文档版本:1.21.0.24

Allows the mob to randomly sit and look around for a duration. Note: Must have a sitting animation set up to use this.

架构

random_look_around_and_sit:
{
  priority "priority"
  boolean "continue_if_leashed" : opt
  boolean "continue_sitting_on_reload" : opt
  number "max_angle_of_view_horizontal" : opt
  integer "max_look_count" : opt
  integer "max_look_time" : opt
  number "min_angle_of_view_horizontal" : opt
  integer "min_look_count" : opt
  integer "min_look_time" : opt
  number "probability" : opt
  integer "random_look_around_cooldown" : opt
}
prioritypriority
priority:
integer
continue_if_leashedboolean
If the goal should continue to be used as long as the mob is leashed.
continue_sitting_on_reloadboolean
The mob will stay sitting on reload.
max_angle_of_view_horizontalnumber
The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction.
max_look_countinteger
The max amount of unique looks a mob will have while looking around.
max_look_timeinteger
The max amount of time (in ticks) a mob will stay looking at a direction while looking around.
min_angle_of_view_horizontalnumber
The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction.
min_look_countinteger
The min amount of unique looks a mob will have while looking around.
min_look_timeinteger
The min amount of time (in ticks) a mob will stay looking at a direction while looking around.
probabilitynumber
The probability of randomly looking around/sitting.
random_look_around_cooldowninteger
The cooldown in seconds before the goal can be used again.