Random Look Around And Sit¶
文档版本:1.21.50.25
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
}
priority
:priority
continue_if_leashed
:boolean- If the goal should continue to be used as long as the mob is leashed.
continue_sitting_on_reload
:boolean- The mob will stay sitting on reload.
max_angle_of_view_horizontal
:number- The rightmost angle a mob can look at on the horizontal plane with respect to its initial facing direction.
max_look_count
:integer- The max amount of unique looks a mob will have while looking around.
max_look_time
:integer- The max amount of time (in ticks) a mob will stay looking at a direction while looking around.
min_angle_of_view_horizontal
:number- The leftmost angle a mob can look at on the horizontal plane with respect to its initial facing direction.
min_look_count
:integer- The min amount of unique looks a mob will have while looking around.
min_look_time
:integer- The min amount of time (in ticks) a mob will stay looking at a direction while looking around.
probability
:number- The probability of randomly looking around/sitting.
random_look_around_cooldown
:integer- The cooldown in seconds before the goal can be used again.