Skip to content

API reference / @jsprismarine/prismarine / world/packDimensions

world/packDimensions ​

Type Aliases ​

PackDimension ​

PackDimension = { biome: string; definition: DimensionTypeDefinition; typeId: string; } | { problem: string; }

Defined in: packages/prismarine/src/world/packDimensions.ts:28

A pack dimension read from its document, or why it cannot be one.

Union Members ​

Type Literal ​

{ biome: string; definition: DimensionTypeDefinition; typeId: string; }

biome ​

readonly biome: string

The Bedrock biome the client is told and every chunk is filled with.

definition ​

readonly definition: DimensionTypeDefinition

typeId ​

readonly typeId: string


Type Literal ​

{ problem: string; }

Functions ​

packDimensionOf() ​

packDimensionOf(identifier, data): PackDimension

Defined in: packages/prismarine/src/world/packDimensions.ts:56

Reads one minecraft:dimension document into the dimension type its void stem binds, the Overworld's physics with the document's bounds and clouds, and its default biome.

A document without minecraft:clouds renders none: BDS sends Render Clouds false for it.

Parameters ​

identifier ​

string

data ​

unknown

Returns ​

PackDimension