minecraft:behavior.move_towards_target

Allows mob to move towards its current target.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
within_radiusDecimal0Defines the radius in blocks that the mob tries to be from the target. A value of 0 means it tries to occupy the same block as the target
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Iron Golem uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.move_towards_target": {
    "priority": 2,
    "speed_multiplier": 0.9,
    "within_radius": 32
  }
}

Used by 1

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

Related components