interface AddonEntity {
    id: number;
    type: string;
    exec(command: string): string;
    execAt(command: string, x: number, y: number, z: number): string;
}

Methods

Properties

Methods

  • Executes command with the entity.

    Parameters

    • command: string

      command to be executed

    Returns string

    Error message or null if the command was run successfully.

  • Executes command with the entity on the specified coordinates.

    Parameters

    • command: string

      command to be executed

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

    Returns string

    Error message or null if the command was run successfully.

Properties

id: number

Entity unique ID.

type: string

Add-on defined entity name ID.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.