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

minecraft:behavior.mount_pathing

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

Overview

minecraft:behavior.mount_pathing is an entity component: it goes in the components object of a custom mob, or in one of its component groups. AI goal that lets a mob carrying a rider keep moving on its own toward a target to attack, like the spider in a spider jockey.

Fields

FieldTypeDefaultDescription
speed_multipliernumber1Speed multiplier while moving.
target_distnumber0How far the mob wants to stay from its target.
track_targetbooleanfalseIf true, the mob keeps chasing the target while it is still valid.
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.mount_pathing": {
    "speed_multiplier": 1,
    "target_dist": 0,
    "track_target": false,
    "priority": 0,
    "control_flags": []
  }
}

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