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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈