Script API - v1.19.70
    Preparing search index...

    Class EntityMovementSwayComponentBeta

    When added, this move control causes the mob to sway side to side giving the impression it is swimming.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    maxTurn: number

    The maximum number in degrees the mob can turn per tick.

    This property can throw when used.

    swayAmplitude: number

    Amplitude of the sway motion.

    This property can throw when used.

    swayFrequency: number

    Amount of sway frequency.

    This property can throw when used.

    typeId: string

    Identifier of this component. Should always be minecraft:movement.sway.

    componentId: "minecraft:movement.sway" = 'minecraft:movement.sway'

    Identifier of this component. Should always be minecraft:movement.sway.