MineJSv0.5.1

ServerWorld

interface ServerWorld { chunks: Record<string, ChunkColumn>; dimensions: string[]; entities: Record<number, Entity>; hardcore: boolean; maxPlayers: number; simulationDistance: number; viewDistance: number; }

Source: state.ts:24

Represent world information


Properties

chunks: Record<string, ChunkColumn>

The record key is a chunk section position packed as Player Dimension:Chunk X:Chunk Z[Section Y]

For Section Y, a chunk is splitted into several cubic 16x16x16 sections, or in other word, a chunk is a bund of 16x16x16 sections stacked on each other.

dimensions: string[]

All dimensions

entities: Record<number, Entity>

The record key is entity ID

hardcore: boolean

Is hardcore enabled

maxPlayers: number

Max players allowed

simulationDistance: number

Simulation distance

viewDistance: number

View distances