Entity Documentation - minecraft:movement.sway
minecraft:movement.sway
compels the entity to sway side to side giving the impression it is swimming.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
max_turn | 30.0 | Decimal | The maximum number in degrees the entity can turn per tick. |
sway_amplitude | 0.05 | Decimal | Strength of the sway movement. |
sway_frequency | 0.5 | Decimal | Multiplier for the frequency of the sway movement. |
Example
"minecraft:movement.sway":{
"max_turn": 30.0,
"sway_amplitude": 0.05,
"sway_frequency": 0.5
}
Vanilla entities examples
fish
"minecraft:movement.sway": {
"sway_amplitude": 0.0
}
Vanilla entities using minecraft:movement.sway
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈