minecraft:behavior.move_to_village

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

Properties

PropertyTypeDefaultWhat it does
search_rangeInteger0The distance in blocks to search for villages. If <= 0, find the closest village regardless of distance.
cooldown_timeDecimalmin 08Time in seconds the mob has to wait before using the goal again
goal_radiusDecimalmin 01.5Distance 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.
speed_multiplierDecimalmin 01Movement speed multiplier of the mob when using this goal.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Ravager uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.move_to_village": {
    "priority": 5,
    "speed_multiplier": 1.0,
    "goal_radius": 2.0
  }
}

Used by 5

Vanilla entities with minecraft:behavior.move_to_village in their definition:

Related components