The name of the structure. A valid identifier must include a namespace and must be unique.
The size of the structure. For example, to create a single block structure the size should be {x:1, y:1, z:1}.
Optional
saveMode: StructureSaveModeHow the Structure should be saved upon creation. Defaults to StructureSaveMode.Memory.
Returns the newly created Structure.
Creates an empty Structure in memory. Use Structure.setBlockPermutation to populate the structure with blocks and save changes with Structure.saveAs.
This function can't be called in read-only mode.
The name of the structure. A valid identifier must include a namespace and must be unique.
The dimension where the blocks should be read from.
Optional
options: StructureCreateOptionsAdditional options for creating a structure from the world.
Returns the newly created Structure.
The structure identifier or Structure object that should be deleted. Note, a Structure object will become invalid after it is deleted.
Returns whether the structure was removed.
The name of the structure to get.
Returns a Structure if it exists, otherwise undefined.
The structure's identifier or a Structure object.
The dimension where the Structure should be placed.
The location within the dimension where the Structure should be placed.
Optional
options: StructurePlaceOptionsAdditional options for Structure placement.
Places a structure in the world. Structures placed in unloaded chunks will be queued for loading.
This function can't be called in read-only mode.
Manager for Structure related APIs. Includes APIs for creating, getting, placing and deleting Structures.