Stroll Towards Village¶
文档版本:1.21.50.25
Allows the mob to move into a random location within a village within the search range.
架构¶
stroll_towards_village:
{
priority "priority"
number "cooldown_time" : opt
number "goal_radius" : opt
integer "search_range" : opt
number "speed_multiplier" : opt
number "start_chance" : opt
}
priority
:priority
cooldown_time
:number- Time in seconds the mob has to wait before using the goal again.
goal_radius
:number- Distance in blocks within the mob considers it has reached the goal. This is the
wiggle room
to stop the AI from bouncing back and forth trying to reach a specific spot
search_range
:integer- The distance in blocks to search for points inside villages. If <= 0, find the closest village regardless of distance.
speed_multiplier
:number- Movement speed multiplier of the mob when using this AI Goal.
start_chance
:number- This is the chance that the mob will start this goal, from 0 to 1.