1. Wiki
  2. /Entities
  3. /minecraft:behavior.explore_outskirts

minecraft:behavior.explore_outskirts

Don't want to write this by hand? GodCraft sets minecraft:behavior.explore_outskirts for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
next_xzinteger5How far sideways the next wander spot can be from the current one.
next_yinteger3How far up or down the next wander spot can be from the current one.
min_wait_timenumber3Shortest wait in seconds before picking a new wander spot.
max_wait_timenumber0Longest wait in seconds before picking a new wander spot.
max_travel_timenumber60Seconds the mob tries to reach the village edge before giving up.
speed_multipliernumber1Speed multiplier while exploring. 1.0 keeps normal speed.
explore_distnumber5How many blocks past the village border the mob may go.
min_perimeternumber1The village must be at least this big around for the goal to run.
min_dist_from_targetnumber2.25How close the mob must get to count as arrived.
timer_rationumber2The random wait is divided by this, so higher values make the mob move on sooner.
dist_from_boundaryvec3[5,0,5]How close to the village border the mob must be to start exploring.
priorityinteger0Lower numbers run first: when two goals compete, the one with the smaller priority wins.Range: 0 to …
control_flagsGoal's control flags[]noneWhich 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
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more