minecraft:behavior.slime_random_direction
Allows the entity to move in random directions like a slime.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
add_random_time_range | Integer | 3 | Additional time (in whole seconds), chosen randomly in the range of [0, "add_random_time_range"], to add to "min_change_direction_time". |
turn_range | Integer | 360 | Maximum rotation angle range (in degrees) when randomly choosing a new direction. |
min_change_direction_time | Decimal | 2 | Constant minimum time (in seconds) to wait before choosing a new direction. |
priority | Integermin 0 | 0 | |
control_flags | List 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
behavior.floatbehavior.random_swimbehavior.swim_idlebehavior.swim_wanderbehavior.use_kinetic_weaponbehavior.move_to_waterbehavior.teleport_to_ownerbehavior.float_wanderbehavior.go_homebehavior.random_hoverbehavior.slime_floatbehavior.slime_keep_on_jumpingbehavior.move_to_landbehavior.move_to_random_blockbehavior.circle_around_anchorbehavior.dragonholdingpatternbehavior.dragonlandingbehavior.dragontakeoffbehavior.explore_outskirtsbehavior.find_underwater_treasurebehavior.move_to_blockbehavior.move_to_liquidbehavior.random_breachbehavior.random_fly