A structure: .mcstructure files under the server's structures/, the world's, or ones made in memory.
Class in @minecraft/server
A structure: .mcstructure files under the server’s structures/, the world’s, or ones made in memory.
import { Structure } from '@minecraft/server';Properties
Section titled “Properties”read-only
readonly id: string;namespace:name; structures/vault/door.mcstructure is vault:door.
read-only
readonly size: Vector3;Types
source
Section titled “source”read-only
readonly source: "Memory" | "World" | "Folder";Where it was found.
isValid
Section titled “isValid”read-only
readonly isValid: boolean;False once deleted.
Used by
Section titled “Used by”StructureManager.get, StructureManager.place, StructureManager.createFromWorld, StructureManager.delete, World.loadStructure