Allows the entity to move in random directions like a slime.
Note
Can only be used on the following types of entity:
- Slime (minecraft:slime)
- Magma Cube (minecraft:magma_cube)
Entity Slime Random Direction Behavior Properties
| Name | Default Value | Type | Description | Example Values |
|---|---|---|---|---|
| add_random_time_range | 3 | Integer number | Additional time (in whole seconds), chosen randomly in the range of [0, "add_random_time_range"], to add to "min_change_direction_time". | |
| control_flags | [] | Control Flags choices | ||
| min_change_direction_time | 2 | Decimal number | Constant minimum time (in seconds) to wait before choosing a new direction. | |
| priority | 0 | Integer number | As priority approaches 0, the priority is increased. The higher the priority, the sooner this behavior will be executed as a goal. | Magma Cube: 4 |
| turn_range | 360 | Integer number | Maximum rotation angle range (in degrees) when randomly choosing a new direction. |
Control Flags choices
| Value | Title | Description |
|---|---|---|
| jump | Jump | |
| look | Look | |
| move | Move |
Samples
Magma Cube
"minecraft:behavior.slime_random_direction": {
"priority": 4
}