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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for