@minecraft/server
    Preparing search index...

    Interface CustomCommandBeta

    Define the custom command, including name, permissions, and parameters.

    interface CustomCommand {
        description: string;
        mandatoryParameters?: CustomCommandParameter[];
        name: string;
        optionalParameters?: CustomCommandParameter[];
        permissionLevel: CustomCommandPermissionLevel;
    }
    Index

    Properties

    description: string

    Command description as seen on the command line.

    mandatoryParameters?: CustomCommandParameter[]

    List of mandatory command parameters.

    name: string

    The name of the command. A namespace is required.

    optionalParameters?: CustomCommandParameter[]

    List of optional command parameters.

    The permission level required to execute the command.