@minecraft/server
    Preparing search index...

    Class DimensionTypesBeta

    Used for accessing all available dimension types. Currently only works with Vanilla dimensions.

    Index

    Methods

    Methods

    • Beta

      Parameters

      • dimensionTypeId: string

      Returns DimensionType | undefined

      Retrieves a dimension type using a string-based identifier. Works with both vanilla dimensions and custom dimensions. Custom dimensions cannot be retrieved until after the system startup event has completed.

      early-execution-allowed - This function can be called in early-execution mode.

    • Beta

      Returns DimensionType[]

      Retrieves an array of all dimension types. Includes both vanilla dimensions and custom dimensions. Custom dimensions are not included until after the system startup event has completed.

      early-execution-allowed - This function can be called in early-execution mode.