minecraft:behavior.explore_outskirts for you with a switch.Get GodCraftOverview
minecraft:behavior.explore_outskirts is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that sends the mob to the edge of its village and lets it wander a little there. Needs minecraft:dweller and a navigation component.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
next_xz | integer | 5 | How far sideways the next wander spot can be from the current one. |
next_y | integer | 3 | How far up or down the next wander spot can be from the current one. |
min_wait_time | number | 3 | Shortest wait in seconds before picking a new wander spot. |
max_wait_time | number | 0 | Longest wait in seconds before picking a new wander spot. |
max_travel_time | number | 60 | Seconds the mob tries to reach the village edge before giving up. |
speed_multiplier | number | 1 | Speed multiplier while exploring. 1.0 keeps normal speed. |
explore_dist | number | 5 | How many blocks past the village border the mob may go. |
min_perimeter | number | 1 | The village must be at least this big around for the goal to run. |
min_dist_from_target | number | 2.25 | How close the mob must get to count as arrived. |
timer_ratio | number | 2 | The random wait is divided by this, so higher values make the mob move on sooner. |
dist_from_boundary | vec3 | [5,0,5] | How close to the village border the mob must be to start exploring. |
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.explore_outskirts": {
"next_xz": 5,
"next_y": 3,
"min_wait_time": 3,
"max_wait_time": 0,
"max_travel_time": 60,
"speed_multiplier": 1,
"explore_dist": 5,
"min_perimeter": 1
}
}