minecraft:behavior.move_outdoors for you with a switch.Get GodCraftOverview
minecraft:behavior.move_outdoors 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 outside, like villagers in the morning.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
timeout_cooldown | number | 8 | Seconds to wait before trying again after no path is found. |
goal_radius | number | 2 | How close the mob must get to the outdoor spot to count as arrived. |
search_range | integer | 15 | How far sideways, in blocks, the mob looks for an outdoor spot. |
search_height | integer | 5 | How far up and down, in blocks, the mob looks for an outdoor spot. |
speed_multiplier | number | 0.5 | Speed multiplier while moving outdoors. |
search_count | integer | 10 | How many random spots are tried before the goal gives up. |
priority | integer | 0 | Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to … |
control_flags | Goal's control flags[] | none | Which 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_outdoors": {
"timeout_cooldown": 8,
"goal_radius": 2,
"search_range": 15,
"search_height": 5,
"speed_multiplier": 0.5,
"search_count": 10,
"priority": 0,
"control_flags": []
}
}