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

minecraft:behavior.move_indoors

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

Overview

minecraft:behavior.move_indoors is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that makes the mob go inside a building, like villagers at night or in the rain.

Fields

FieldTypeDefaultDescription
timeout_cooldownnumber8Seconds to wait before trying again after no path is found.
speed_multipliernumber0.8Speed multiplier while moving indoors.
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_indoors": {
    "timeout_cooldown": 8,
    "speed_multiplier": 0.8,
    "priority": 0,
    "control_flags": []
  }
}

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