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

    DimensionLocation

    Interface in @minecraft/server

    Extends Vector3

    A place in a dimension.

    import type { DimensionLocation } from '@minecraft/server';
    import { world, type DimensionLocation } from '@minecraft/server';
    for (const player of world.getAllPlayers()) {
    const dimensionLocation: DimensionLocation | undefined = player.getSpawnPoint();
    console.log(player.name, dimensionLocation?.dimension.id);
    }
    import { world } from '@minecraft/server';
    for (const player of world.getAllPlayers()) {
    const dimensionLocation = player.getSpawnPoint();
    console.log(player.name, dimensionLocation?.dimension.id);
    }
    dimension: Dimension;

    Player.getSpawnPoint, Player.setSpawnPoint, LocationWaypoint.constructor, LocationWaypoint.setDimensionLocation, PrimitiveShape.setLocation, TextPrimitive.constructor, Waypoint.getDimensionLocation

    From Vector3: x, y, z