minecraft:movement.sway
This move control causes the mob to sway side to side giving the impression it is swimming.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
sway_frequency | Decimal | 0.5 | Multiplier for the frequency of the sway movement. |
sway_amplitude | Decimal | 0.05 | Strength of the sway movement. |
max_turn | Decimal | 30 | The maximum number in degrees the mob can turn per tick. |
Example from the game files
This is how vanilla Nautilus uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:movement.sway": {
"sway_amplitude": 0.0
}
}Used by 9
Vanilla entities with minecraft:movement.sway in their definition: