Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    World

    StructureManager

    Class in @minecraft/server

    The world’s structures.

    import { StructureManager } from '@minecraft/server';
    import { world, type StructureManager } from '@minecraft/server';
    const structureManager: StructureManager = world.structureManager;
    import { world } from '@minecraft/server';
    const structureManager = world.structureManager;
    get(identifier: string): Structure | undefined;
    Parameters
    identifier
    string
    Returns
    Structure | undefined
    has(identifier: string): boolean;

    Whether a structure by this id is in memory, the world or the folder.

    Parameters
    identifier
    string
    Returns
    boolean
    place(structure: string | Structure, dimension: Dimension, location: Vector3, options?: StructurePlaceOptions): void;

    Places a structure with its lowest corner at location.

    Parameters
    structure
    string | Structure
    dimension
    Dimension
    location
    Vector3
    optionsoptional
    StructurePlaceOptions
    Throws
    • If there’s no such structure or its chunks can’t be loaded.
    createFromWorld(
    identifier: string,
    dimension: Dimension,
    from: Vector3,
    to: Vector3,
    options?: StructureCreateOptions,
    ): Structure;

    Copies the blocks between two corners, and the mobs among them if asked.

    Parameters
    identifier
    string
    dimension
    Dimension
    from
    Vector3
    to
    Vector3
    optionsoptional
    StructureCreateOptions
    Returns
    Structure
    delete(structure: string | Structure): boolean;

    Takes it out of memory and the world; files in the folder are left alone.

    Parameters
    structure
    string | Structure
    Returns
    boolean
    getWorldStructureIds(): string[];

    Every structure in memory, the world and the folder.

    Returns
    string[]

    World.structureManager