Entity Documentation - minecraft:behavior.random_breach
minecraft:behavior.random_breach
compels an entity to breach the surface of the water at a random interval.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
cooldown_time | 0.0 | Decimal | Time in seconds the mob has to wait before using the goal again. |
interval | 120 | Integer | A random value to determine when to randomly move somewhere. This has a 1/interval chance to choose this goal. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
speed_multiplier | 1.0 | Decimal | Movement speed multiplier of the mob when using this AI Goal. |
xz_dist | 10 | Integer | Distance in blocks on ground that the mob will look for a new spot to move to. Must be at least 1. |
y_dist | 7 | Integer | Distance in blocks that the mob will look up or down for a new spot to move to. Must be at least 1. |
Example
"minecraft:behavior.random_breach":{
"priority": 2,
"interval": 50,
"cooldown_time": 2.0,
"speed_multiplier": 1.0,
"xz_dist": 6,
"y_dist": 4
}
Vanilla entities examples
dolphin
"minecraft:behavior.random_breach": {
"priority": 6,
"interval": 50,
"xz_dist": 6,
"cooldown_time": 2.0
}
Vanilla entities using minecraft:behavior.random_breach
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈