1. Wiki
  2. /Entities
  3. /minecraft:behavior.move_through_village

minecraft:behavior.move_through_village

Don't want to write this by hand? GodCraft sets minecraft:behavior.move_through_village for you with a switch.Get GodCraft

Overview

minecraft:behavior.move_through_village is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Villager only: makes the villager walk along paths through its village.

Fields

FieldTypeDefaultDescription
speed_multipliernumber1Speed multiplier while walking through the village.
only_at_nightbooleanfalseIf true, the mob only does this at night.
priorityinteger0Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to …
control_flagsGoal's control flags[]noneWhich body parts this goal takes over (move, look, jump), so goals using the same parts cannot run together.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:behavior.move_through_village": {
    "speed_multiplier": 1,
    "only_at_night": false,
    "priority": 0,
    "control_flags": []
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more