minecraft:behavior.slime_random_direction

Allows the entity to move in random directions like a slime.

Properties

PropertyTypeDefaultWhat it does
add_random_time_rangeInteger3Additional time (in whole seconds), chosen randomly in the range of [0, "add_random_time_range"], to add to "min_change_direction_time".
turn_rangeInteger360Maximum rotation angle range (in degrees) when randomly choosing a new direction.
min_change_direction_timeDecimal2Constant minimum time (in seconds) to wait before choosing a new direction.
priorityIntegermin 00
control_flagsList of text[]

Example from the game files

This is how vanilla Sulfur Cube uses it in Minecraft Bedrock 1.26.60.5:

{
  "minecraft:behavior.slime_random_direction": {
    "priority": 4,
    "add_random_time_range": 3,
    "turn_range": 360,
    "min_change_direction_time": 2.0
  }
}

Used by 3

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

Related components