minecraft:movement.sway

This move control causes the mob to sway side to side giving the impression it is swimming.

Properties

PropertyTypeDefaultWhat it does
sway_frequencyDecimal0.5Multiplier for the frequency of the sway movement.
sway_amplitudeDecimal0.05Strength of the sway movement.
max_turnDecimal30The 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:

Related components