Constructors

Properties

player: Entity

Accessors

  • get dimension(): Dimension

    The currently selected dimension.

    It is stored in the player's posD dynamic property.

    Returns Dimension

  • set dimension(value: string | Dimension): void

    Parameters

    Returns void

  • get maxPos(): Vector3

    The largest corner of the selection.

    It gets the maximum values of each of the vectors of the pos1 and pos2 properties.

    Returns Vector3

  • get minPos(): Vector3

    The smallest corner of the selection.

    It gets the minimum values of each of the vectors of the pos1 and pos2 properties.

    Returns Vector3

  • get pos1(): Vector3

    The first corner of the current selection.

    It is stored in the player's pos1 dynamic property.

    Returns Vector3

  • set pos1(value: Vector3): void

    Parameters

    Returns void

  • get pos2(): Vector3

    The second corner of the current selection.

    It is stored in the player's pos2 dynamic property.

    Returns Vector3

  • set pos2(value: Vector3): void

    Parameters

    Returns void

Methods

  • Parameters

    • selectionID: string

    Returns {
        dimension:
            | "minecraft:overworld"
            | "minecraft:nether"
            | "minecraft:the_end";
        pos1: Vector3;
        pos2: Vector3;
    }

  • Returns string[]

  • Returns {
        [selectionID: string]: {
            dimension:
                | "minecraft:overworld"
                | "minecraft:nether"
                | "minecraft:the_end";
            pos1: Vector3;
            pos2: Vector3;
        };
    }

  • Parameters

    • selectionID: string

    Returns boolean

  • Parameters

    • selectionID: string
    • value: {
          dimension:
              | "minecraft:overworld"
              | "minecraft:nether"
              | "minecraft:the_end";
          pos1: Vector3;
          pos2: Vector3;
      } = ...

    Returns void

  • Returns {
        dimension: string;
        maxPos: Vector3;
        minPos: Vector3;
        pos1: Vector3;
        pos2: Vector3;
        savedSelections: {
            [selectionID: string]: {
                dimension:
                    | "minecraft:overworld"
                    | "minecraft:nether"
                    | "minecraft:the_end";
                pos1: Vector3;
                pos2: Vector3;
            };
        };
    }