Перейти к основному содержанию

Commands

Namespace used to manipulate Minecraft commands.

Index

Functions

Functions

exec

  • Executes specified command.


    Parameters

    • command: string

      command to be executed

    Returns Nullable<string>

    Error message or null if the command was run successfully.

execAt

  • execAt(command: string, x: number, y: number, z: number): Nullable<string>
  • Executes specified command using specified coordinates as command location for all relative calculations.


    Parameters

    • command: string

      command to be executed

    • x: number
    • y: number
    • z: number

    Returns Nullable<string>

    Error message or null if the command was run successfully.

Page Options