minecraft:behavior.mount_pathing

Allows the mob to move around on its own while mounted seeking a target to attack.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
target_distDecimal0The distance at which this mob wants to be away from its target
track_targetBooleanfalseIf true, this mob will chase after the target as long as it's a valid target
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Cave Spider uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.mount_pathing": {
    "priority": 5,
    "target_dist": 0.0,
    "speed_multiplier": 1.25,
    "track_target": true
  }
}

Used by 26

Vanilla entities with minecraft:behavior.mount_pathing in their definition:

Related components