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

    Defines the general movement speed of this entity.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    current: number

    Read-only. Returns the current value of default movement speed for the entity.

    This property can throw when used.

    typeId: string

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

    value: number

    Value for default movement speed as defined through entity components.

    This property can throw when used.

    componentId: "minecraft:movement" = 'minecraft:movement'

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

    Methods

    • Beta

      Returns void

      Resets the current default movement speed value for the entity to the default value.

      This function can throw errors.

    • Beta

      Returns void

      Resets the default movement speed to the maximum value for the entity.

      This function can throw errors.

    • Beta

      Returns void

      Resets the default movement speed to the minimum value.

      This function can throw errors.

    • Beta

      Parameters

      • value: number

      Returns boolean

      Sets the current value of default movement speed for the entity.

      This function can throw errors.