minecraft:behavior.move_outdoors
Allows this entity to move outdoors.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
timeout_cooldown | Decimal | 8 | The cooldown time in seconds before the goal can be reused after pathfinding fails |
goal_radius | Decimal | 2 | The radius away from the target block to count as reaching the goal |
search_range | Integer | 15 | The x and z range to search for an outdoors position for |
search_height | Integer | 5 | The y range to search for an outdoors position for |
speed_multiplier | Decimal | 0.5 | The movement speed modifier to apply to the entity while it is moving outdoors |
search_count | Integer | 10 | The amount of times to try finding a random outdoors position before failing |
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.move_outdoors": {
"priority": 2,
"speed_multiplier": 0.8,
"timeout_cooldown": 8
}
}Used by 2
Vanilla entities with minecraft:behavior.move_outdoors in their definition:
Related components
behavior.pickup_itemsbehavior.move_to_villagebehavior.harvest_farm_blockbehavior.lay_eggbehavior.move_indoorsbehavior.place_blockbehavior.raid_gardenbehavior.digbehavior.dragonscanningbehavior.drop_item_forbehavior.eat_blockbehavior.eat_carried_itembehavior.eat_mobbehavior.fertilize_farm_blockbehavior.hold_groundbehavior.inspect_bookshelfbehavior.move_through_villagebehavior.open_doorbehavior.random_search_and_digbehavior.restrict_open_doorbehavior.snackingbehavior.stroll_towards_villagebehavior.take_blockbehavior.transport_items