Beta
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.
Private
The callback triggered when the command executes.
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
Registers a custom command enum.
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.