minecraft:behavior.hide
Allows a mob with the hide component to attempt to move to - and hide at - an owned or nearby POI.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
duration | Decimalmin 0 | 1 | Amount of time in seconds that the mob reacts. |
timeout_cooldown | Decimalmin 0 | 8 | The cooldown time in seconds before the goal can be reused after a internal failure or timeout condition. |
poi_type | Textbed, meeting_area, jobsite | null | Tells the goal what POI type it should be looking for |
speed_multiplier | Decimalmin 0 | 1 | Movement speed multiplier of the mob when using this goal. |
priority | Integermin 0 | 0 | |
control_flags | List 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: