世界修改
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}.
可选
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.
世界修改
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.
可选
options: StructureCreateOptionsAdditional options for creating a structure from the world.
Returns the newly created Structure.
Creates a new Structure from blocks in the world. This is functionally equivalent to the /structure save command.
世界修改
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.
可选
options: StructurePlaceOptionsAdditional options for Structure placement.
Throws if the integrity value is outside of the range [0,1] Throws if the integrity seed is invalid. Throws if the placement location contains blocks that are outside the world bounds.
minecraftcommon.ArgumentOutOfBoundsError
beta
世界修改
The identifier of the template pool to start from.
The name of the jigsaw block to start from. This block must be included in at least one of the starting pool structure templates.
The maximum recursion depth for the jigsaw structure.
The dimension to place the jigsaw structure in.
The location where the jigsaw structure will begin generating relative to the targetJigsaw block.
可选
options: JigsawPlaceOptionsOptional settings to use when generating the jigsaw structure.
Returns a BoundingBox object which represents the maximum bounds of the jigsaw structure.
Places a partial jigsaw structure in the world. This is useful for debugging connections between jigsaw blocks.
beta
世界修改
The identifier of the jigsaw structure.
The dimension to place the jigsaw structure in.
The location where the jigsaw structure will begin generating. Note that the y value will be overridden by the structure's start height unless the ignoreStarJigsawStructurePlaceOptions ignoreStartHeight option is set.
可选
options: JigsawStructurePlaceOptionsOptional settings to use when generating the jigsaw structure.
Returns a BoundingBox object which represents the maximum bounds of the jigsaw structure.
Manager for Structure related APIs. Includes APIs for creating, getting, placing and deleting Structures.