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

minecraft:behavior.find_mount

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

Overview

minecraft:behavior.find_mount 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 look for another mob to climb on and ride, like a baby zombie hunting for a chicken.

Fields

FieldTypeDefaultDescription
within_radiusnumber0How far, in blocks, the mob looks for something to ride.
start_delayinteger0How long the mob waits before heading to the mount.
avoid_waterbooleanfalseIf true, the mob stays out of water on its way to the mount.
target_neededbooleanfalseIf true, the mob only looks for a mount while it has a target.
mount_distancenumber-1How close the mob must be to climb on. Below 0 uses its attack distance.
max_failed_attemptsinteger20How many times the mob may fail to find a mount before giving up.
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.find_mount": {
    "within_radius": 0,
    "start_delay": 0,
    "avoid_water": false,
    "target_needed": false,
    "mount_distance": -1,
    "max_failed_attempts": 20,
    "priority": 0,
    "control_flags": []
  }
}

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