Provides the functionality for registering custom commands.

Custom Command APIs are released as part of Scripting API 2.0 Beta in Minecraft v1.21.80. Here's a video from Mojang that covers the custom command APIs.

Constructors

Methods

  • Parameters

    • name: string
    • values: string[]

    Returns void

    Registers a custom command enum.

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

    This function can be called in early-execution mode.