Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.65 KB

minecraftBehavior_slime_random_direction.md

File metadata and controls

49 lines (38 loc) · 1.65 KB
author ms.author title description ms.service
iconicNurdle
mikeam
Entity Documentation - minecraft:behavior.slime_random_direction
A reference document detailing the 'behavior.slime_random_direction' entity goal
minecraft-bedrock-edition

Entity Documentation - minecraft:behavior.slime_random_direction

minecraft:behavior.slime_random_direction compels the entity to move in random directions like a slime.

Parameters

Name Default Value Type Description
add_random_time_range 3 Integer Additional time (in whole seconds), chosen randomly in the range of [0, "add_random_time_range"], to add to "min_change_direction_time".
min_change_direction_time 2 Decimal Constant minimum time (in seconds) to wait before choosing a new direction.
turn_range 360 Integer Maximum rotation angle range (in degrees) when randomly choosing a new direction.
priority not set Integer The higher the priority, the sooner this behavior will be executed as a goal.

Example

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

Vanilla entities examples

slime

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

Vanilla entities using minecraft:behavior.slime_random_direction