minecraft:movement.sway for you with a switch.Get GodCraftOverview
minecraft:movement.sway is an entity component: it goes in the components object of a custom mob, or in one of its component groups. A move style that wiggles the mob from side to side so it looks like it is swimming, as fish do.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
max_turn | Decimal | "30.0" | How many degrees the mob can turn in one tick. Lower values give smoother, slower turns. |
sway_amplitude | Decimal | "0.05" | How wide the side-to-side wiggle is. |
sway_frequency | Decimal | "0.5" | How fast the wiggle repeats; higher means quicker swaying. |
Example
Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):
BP/entities/<name>.json
{
"minecraft:movement.sway": {
"max_turn": "30.0",
"sway_amplitude": "0.05",
"sway_frequency": "0.5"
}
}