Represents a loaded structure template (.mcstructure file). Structures can be placed in a world using the /structure command or the StructureManager APIs.

Constructors

Properties

id: string

The name of the structure. The identifier must include a namespace. For structures created via the /structure command or structure blocks, this namespace defaults to "mystructure".

isValid: boolean

Returns whether the Structure is valid. The Structure may become invalid if it is deleted.

size: Vector3

The dimensions of the structure. For example, a single block structure will have a size of {x:1, y:1, z:1}

This property can throw when used.

InvalidStructureError

Methods