Beta
Readonly
Beta
idReadonly
Beta
isReadonly
Beta
sizeBeta
The block location relative to the Structure's origin.
Returns a BlockPermutation. Returns undefined if a block does not exist at the given location.
Beta
The block location relative to the Structure's origin.
Returns whether the block at the given location is waterlogged. Returns false if a block does not exist at the given location.
Beta
The name of the newly created Structure.
Optional
saveMode: StructureSaveModeDetermines how the Structure should be saved. Defaults to saving to the world.
Returns the newly created structure.
Creates a copy of a Structure and saves it with a new name.
This function can't be called in read-only mode.
Beta
The block location relative to the Structure's origin.
Optional
blockPermutation: BlockPermutationThe BlockPermutation to set.
Optional
waterlogged: booleanSpecifies whether the block should be waterlogged. Air and undefined blocks cannot be waterlogged.
Throws if the type of block is StructureVoid. Throws if the block is undefined and waterlogged is set to true. Throws if the block is air and waterlogged is set to true. Throws if the location is outside the structure's bounds. Throws if the Structure has been deleted.
minecraftcommon.InvalidArgumentError
Represents a loaded structure template (.mcstructure file). Structures can be placed in a world using the /structure command or the StructureManager APIs.