minecraft:behavior.move_to_random_block

Allows mob to move towards a random block.

Properties

PropertyTypeDefaultWhat it does
speed_multiplierDecimal1Movement speed multiplier of the mob when using this AI Goal
within_radiusDecimal0Defines the distance in blocks the mob has to be from the block for the movement to be finished.
block_distanceDecimal16Defines the distance from the mob, in blocks, that the block to move to will be chosen.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Pillager uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.move_to_random_block": {
    "block_distance": 512,
    "priority": 6,
    "speed_multiplier": 0.55,
    "within_radius": 8
  }
}

Used by 2

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

Related components