Entity Documentation - minecraft:behavior.swim_idle
minecraft:behavior.swim_idle
compels an entity swimming in water to go idle.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
idle_time | 5 | Decimal | Amount of time (in seconds) to stay idle. |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
success_rate | 0.1 | Decimal | Percent chance this entity will go idle, 1.0 = 100%. |
Example
"minecraft:behavior.swim_idle": {
"priority": 5,
"idle_time": 5.0,
"success_rate": 0.1
}
Vanilla entities examples
fish
"minecraft:behavior.swim_idle": {
"priority": 5,
"idle_time": 5.0,
"success_rate": 0.1
}
Vanilla entities using minecraft:behavior.swim_idle
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈