跳转至

Move To Village

文档版本:1.21.0.24

Allows the mob to move into a random location within a village.

架构

move_to_village:
{
  priority "priority"
  speed_multiplier "speed_multiplier"
  number "cooldown_time" : opt
  number "goal_radius" : opt
  integer "search_range" : opt
}
prioritypriority
priority:
integer
speed_multiplierspeed_multiplier
speed_multiplier:
number
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 villages. If <= 0, find the closest village regardless of distance.