minecraft:behavior.move_through_village

Can only be used by Villagers. Allows the villagers to create paths around the village.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
only_at_nightBooleanfalseIf true, the mob will only move through the village during night time
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Iron Golem uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.move_through_village": {
    "only_at_night": true,
    "priority": 3,
    "speed_multiplier": 0.6
  }
}

Used by 1

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

Related components