跳转至

Stroll Towards Village

文档版本:1.21.0.24

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
}
prioritypriority
priority:
integer
cooldown_timenumber
Time in seconds the mob has to wait before using the goal again.
goal_radiusnumber
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_rangeinteger
The distance in blocks to search for points inside villages. If <= 0, find the closest village regardless of distance.
speed_multipliernumber
Movement speed multiplier of the mob when using this AI Goal.
start_chancenumber
This is the chance that the mob will start this goal, from 0 to 1.