minecraft:behavior.hide

Allows a mob with the hide component to attempt to move to - and hide at - an owned or nearby POI.

Properties

PropertyTypeDefaultWhat it does
durationDecimalmin 01Amount of time in seconds that the mob reacts.
timeout_cooldownDecimalmin 08The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition.
poi_typeTextbed, meeting_area, jobsitenullTells the goal what POI type it should be looking for
speed_multiplierDecimalmin 01Movement speed multiplier of the mob when using this goal.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Villager uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.hide": {
    "duration": 30,
    "poi_type": "bed",
    "priority": 0,
    "speed_multiplier": 0.8
  }
}

Used by 1

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

Related components