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

    Class EntityMovementSwayComponent

    import { world } from "@minecraft/server";

    world.afterEvents.entitySpawn.subscribe(({ entity }) => {
    const movementSway = entity.getComponent("movement.sway");
    movementSway.swayAmplitude;
    movementSway.swayFrequency;
    movementSway.isValid;
    });

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    entity: Entity

    This property can throw errors.

    InvalidEntityError

    This property can't be read in early-execution mode.

    isValid: boolean
    maxTurn: number

    This property can throw errors.

    This property can't be read in early-execution mode.

    swayAmplitude: number

    This property can throw errors.

    This property can't be read in early-execution mode.

    swayFrequency: number

    This property can throw errors.

    This property can't be read in early-execution mode.

    typeId: string