Entity Documentation - minecraft:behavior.rise_to_liquid_level
minecraft:behavior.rise_to_liquid_level
compels an entity to rise to the top of a liquid block if they are located in one or have spawned under a liquid block.
Parameter
Name | Default Value | Type | Description |
---|---|---|---|
liquid_y_offset | 0.0 | Decimal | Vertical offset from the liquid |
priority | not set | Integer | The higher the priority, the sooner this behavior will be executed as a goal. |
rise_delta | 0.0 | Decimal | Displacement for how much the entity will move up in the vertical axis. |
sink_delta | 0.0 | Decimal | Displacement for how much the entity will move down in the vertical axis |
Example
"minecraft:behavior.rise_to_liquid_level":{
"priority": 0,
"liquid_y_offset": 0.25,
"rise_delta": 0.5,
"sink_delta": 0.5
}
Vanilla entities examples
strider
"minecraft:behavior.rise_to_liquid_level": {
"priority": 0,
"liquid_y_offset": 0.25,
"rise_delta": 0.01,
"sink_delta": 0.01
}
Vanilla entities using minecraft:behavior.rise_to_liquid_level
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈