@minecraft/server
    Preparing search index...

    Class CustomCommandRegistryBeta

    Provides the functionality for registering custom commands.

    Index

    Methods

    • Beta

      Parameters

      Returns void

      Registers a custom command that when executed triggers a script callback.

      This function can't be called in read-only mode.

      This function can be called in early-execution mode.

      This function can throw errors.

      CustomCommandError

      minecraftcommon.EngineError

      NamespaceNameError