The response type of a command execution.

interface CommandResponse {
    commandBlockOutput?:
        | 0
        | 3
        | 1
        | 2
        | 4
        | 5
        | 6
        | 7
        | 8
        | 9
        | 10
        | 13
        | 14
        | 15
        | 11
        | 12;
    message?: string;
    status: number;
}

Properties

commandBlockOutput?:
    | 0
    | 3
    | 1
    | 2
    | 4
    | 5
    | 6
    | 7
    | 8
    | 9
    | 10
    | 13
    | 14
    | 15
    | 11
    | 12

The output when run from a command block.

This will be the outputted redstone power level.

This is not functional yet.

15
message?: string

The optional response message of the command execution.

status: number

The response status code of the command execution.

  • 0 - The command executed successfully.
  • 1 - The command failed to execute.
  • any other number - The command executed with a custom status code.