编辑

Entity Documentation - minecraft:behavior.move_through_village

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

Entity Move Through Village Behavior Properties

Name Default Value Type Description Example Values
control_flags [] Control Flags choices
only_at_night false Boolean true/false If true, the mob will only move through the village during night time Iron Golem: true
priority 0 Integer number As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. Iron Golem: 3
speed_multiplier 1 Decimal number Movement speed multiplier of the mob when using this AI Goal Iron Golem: 0.6

Control Flags choices

Value Title Description
jump Jump
look Look
move Move

Samples

Iron Golem

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