Entity Documentation - minecraft:behavior.move_through_village

minecraft:behavior.move_through_village compels an entity to navigate around a village by creating a path to patrol.

Parameters

Name Default Value Type Description
only_at_night false Boolean If true, the mob will only move through the village during night time.
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.
speed_multiplier 1.0 Decimal Movement speed multiplier of the mob when using this AI Goal.

Example

"minecraft:behavior.move_through_village":{
    "priority": 1,
    "only_at_night":true,
    "speed_multiplier": 1.25
}

Vanilla entities examples

iron_golem

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

Vanilla entities using minecraft:behavior.move_through_village