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
readonlybiome:string
The Bedrock biome the client is told and every chunk is filled with.
definition
readonlydefinition:DimensionTypeDefinition
typeId
readonlytypeId: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