[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/prismarine](https://jsprismarine.dev/api/@jsprismarine/prismarine/index.md) / world/WorldSystems

# world/WorldSystems

## Classes

- [WorldSystems](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldSystems/classes/WorldSystems.md)

## Interfaces

### LightSectionPalette

Defined in: [packages/prismarine/src/world/WorldSystems.ts:109](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L109)

A chunk section's runtime-id palette and the revision that owns it.

#### Properties

##### revision

> `readonly` **revision**: `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:110](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L110)

##### runtimeIds

> `readonly` **runtimeIds**: `Iterable`\<`number`\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:111](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L111)

***

### RandomTickChunk

Defined in: [packages/prismarine/src/world/WorldSystems.ts:88](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L88)

One chunk a random tick visits, and the sub chunk indices worth drawing from.

#### Properties

##### chunk?

> `readonly` `optional` **chunk?**: `Pick`\<[`Chunk`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/chunk/Chunk/classes/Chunk.md), `"getSubChunk"`\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:97](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L97)

The chunk itself, when the world has it at hand, so each section's draws read the sub chunk
it already found rather than looking the chunk up by its coordinates once per section.

##### sections

> `readonly` **sections**: `Iterable`\<`number`\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:92](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L92)

Sub chunk indices, as the dimension numbers them: the Overworld runs -4 to 19.

##### x

> `readonly` **x**: `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:89](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L89)

##### z

> `readonly` **z**: `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:90](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L90)

***

### RandomTickSectionOrigin

Defined in: [packages/prismarine/src/world/WorldSystems.ts:104](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L104)

A random tick section's corner, with the sub chunk it stands for when the world handed one over.
The engine passes it back to [WorldSystemsAccess.sectionRandomTickIds](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#sectionrandomtickids) as it was given.

#### Extends

- [`SectionOrigin`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#sectionorigin)

#### Properties

##### section?

> `readonly` `optional` **section?**: [`ReadonlySubChunk`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/chunk/SubChunk/index.md#readonlysubchunk) \| `null`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:105](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L105)

##### x

> `readonly` **x**: `number`

Defined in: [packages/engine-systems/src/randomTick.ts:91](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/engine-systems/src/randomTick.ts#L91)

###### Inherited from

[`SectionOrigin`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#sectionorigin).[`x`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#x-2)

##### y

> `readonly` **y**: `number`

Defined in: [packages/engine-systems/src/randomTick.ts:92](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/engine-systems/src/randomTick.ts#L92)

###### Inherited from

[`SectionOrigin`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#sectionorigin).[`y`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#y-2)

##### z

> `readonly` **z**: `number`

Defined in: [packages/engine-systems/src/randomTick.ts:93](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/engine-systems/src/randomTick.ts#L93)

###### Inherited from

[`SectionOrigin`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#sectionorigin).[`z`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#z-2)

***

### SystemBlock

Defined in: [packages/prismarine/src/world/WorldSystems.ts:35](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L35)

A block as the systems read one: the identifier and its Bedrock state values.

#### Properties

##### name

> `readonly` **name**: `string`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:36](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L36)

##### runtimeId?

> `readonly` `optional` **runtimeId?**: `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:39](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L39)

The palette id for block changes whose caller already read it from the chunk.

##### states

> `readonly` **states**: `Readonly`\<`Record`\<`string`, `string` \| `number` \| `boolean`\>\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:37](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L37)

***

### WorldSystemsOptions

Defined in: [packages/prismarine/src/world/WorldSystems.ts:199](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L199)

What a world gives [WorldSystems](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldSystems/classes/WorldSystems.md) to run on.

#### Extends

- `Pick`\<[`EngineOptions`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#engineoptions), `"randomTickHandlers"`\>

#### Properties

##### blockTickHandlers?

> `readonly` `optional` **blockTickHandlers?**: `Readonly`\<`Record`\<`string`, (`at`) => `void`\>\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:205](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L205)

Resolved content handlers for scheduled block ticks.

##### packBlockLight?

> `readonly` `optional` **packBlockLight?**: (`block`) => [`BlockLightProperties`](https://jsprismarine.dev/api/@jsprismarine/lighting/index.md#blocklightproperties) \| `undefined`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:212](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L212)

The light of a block the vanilla mapping table does not know, such as a behavior pack's
stone. Left out, such a block is transparent to light, as air is.

###### Parameters

###### block

[`SystemBlock`](#systemblock)

###### Returns

[`BlockLightProperties`](https://jsprismarine.dev/api/@jsprismarine/lighting/index.md#blocklightproperties) \| `undefined`

##### randomTickHandlers?

> `optional` **randomTickHandlers?**: `Readonly`\<`Record`\<`string`, (`at`, `block`) => `void`\>\>

Defined in: [packages/engine-systems/src/engine.ts:37](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/engine-systems/src/engine.ts#L37)

What to run when a random tick lands on a block, keyed by identifier.

The engine supplies the draws; the handler owns the block behavior. The
block is passed with the position so the handler can reuse this read.

###### Inherited from

`Pick.randomTickHandlers`

##### redstoneUpdateHandlers?

> `readonly` `optional` **redstoneUpdateHandlers?**: [`ContentRedstoneUpdateHandlers`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/redstoneUpdates/index.md#contentredstoneupdatehandlers)

Defined in: [packages/prismarine/src/world/WorldSystems.ts:207](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L207)

Content redstone hooks and their power cache lifecycle.

##### view

> `readonly` **view**: [`WorldSystemsView`](#worldsystemsview)

Defined in: [packages/prismarine/src/world/WorldSystems.ts:201](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L201)

The reads the light pass and the random tick draw need, which a chunk answers.

##### world

> `readonly` **world**: [`WorldAccess`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#worldaccess)

Defined in: [packages/prismarine/src/world/WorldSystems.ts:203](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L203)

The world reads and writes the engine systems need.

***

### WorldSystemsReport

Defined in: [packages/prismarine/src/world/WorldSystems.ts:78](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L78)

What one world tick's systems pass did.

#### Properties

##### light

> `readonly` **light**: [`LightFlushResult`](https://jsprismarine.dev/api/@jsprismarine/lighting/index.md#lightflushresult)

Defined in: [packages/prismarine/src/world/WorldSystems.ts:84](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L84)

What the light engine got through, and what it still owes.

##### randomTicked

> `readonly` **randomTicked**: `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:82](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L82)

How many random tick positions landed on a block that takes them.

##### scheduled

> `readonly` **scheduled**: `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:80](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L80)

How many scheduled block and fluid ticks ran.

***

### WorldSystemsView

Defined in: [packages/prismarine/src/world/WorldSystems.ts:115](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L115)

What [WorldSystems](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldSystems/classes/WorldSystems.md) reads out of the world it serves.

#### Properties

##### dimension

> `readonly` **dimension**: [`DimensionType`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/DimensionType/index.md#dimensiontype)

Defined in: [packages/prismarine/src/world/WorldSystems.ts:116](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L116)

#### Methods

##### blockAt()

> **blockAt**(`x`, `y`, `z`): [`SystemBlock`](#systemblock) \| `undefined`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:118](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L118)

The block at a world position, or undefined when its chunk is not loaded.

###### Parameters

###### x

`number`

###### y

`number`

###### z

`number`

###### Returns

[`SystemBlock`](#systemblock) \| `undefined`

##### blockRuntimeIdAt()?

> `optional` **blockRuntimeIdAt**(`x`, `y`, `z`): `number` \| `undefined`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:129](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L129)

The runtime id at a world position, which names the same block [blockAt](#blockat) answers
with and nothing else.

The light pass reads two numbers per block and asks tens of millions of times while a
world preloads. With this it resolves a block's identifier and state values once per
distinct id and reads the rest out of a table; without it, it asks [blockAt](#blockat) and
goes through the property table by name and state values for every single read. Left out
by every test double, which take the second path.

###### Parameters

###### x

`number`

###### y

`number`

###### z

`number`

###### Returns

`number` \| `undefined`

##### blockStorageAt()?

> `optional` **blockStorageAt**(`x`, `y`, `z`): [`ReadonlyBlockStorage`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/chunk/BlockStorage/index.md#readonlyblockstorage) \| `null` \| `undefined`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:138](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L138)

The block layer storage of the section holding a position: null where the section has no
block layer, which reads as air, and undefined where [blockRuntimeIdAt](#blockruntimeidat) has no block.

The light pass reads a block's two numbers out of a table per palette slot with it, which
skips the walk from the chunk to the section on every read and the lookup by runtime id.
Left out by every test double, which read through [blockRuntimeIdAt](#blockruntimeidat).

###### Parameters

###### x

`number`

###### y

`number`

###### z

`number`

###### Returns

[`ReadonlyBlockStorage`](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/chunk/BlockStorage/index.md#readonlyblockstorage) \| `null` \| `undefined`

##### canTickFluids()?

> `optional` **canTickFluids**(`chunkX`, `chunkZ`): `boolean`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:155](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L155)

Whether the fluid ticks of a chunk may run now. One that may not keeps its due ticks queued
until it may, as Java's `LevelTicks` does for a chunk that is not ticking, so water at the
edge of the loaded area waits for the next chunk rather than stopping for good. A view
without it runs every due fluid tick.

###### Parameters

###### chunkX

`number`

###### chunkZ

`number`

###### Returns

`boolean`

##### lightChunks()?

> `optional` **lightChunks**(): `Iterable`\<\{ `x`: `number`; `z`: `number`; \}\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:164](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L164)

Chunks whose simulation distance and guard ring currently require lighting, in the order
they should be lit: [LIGHT\_CHUNKS\_PER\_TICK](#light-chunks-per-tick) of them are taken in each tick, from the
front.

A view that returns the same object across calls promises the set has not changed in
between; one that changes the set returns a new object.

###### Returns

`Iterable`\<\{ `x`: `number`; `z`: `number`; \}\>

##### lightSectionAt()?

> `optional` **lightSectionAt**(`chunkX`, `sectionY`, `chunkZ`): [`LightSectionPalette`](#lightsectionpalette) \| `undefined`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:168](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L168)

The block-layer palette in a section, for revision-keyed light scan hints.

###### Parameters

###### chunkX

`number`

###### sectionY

`number`

###### chunkZ

`number`

###### Returns

[`LightSectionPalette`](#lightsectionpalette) \| `undefined`

##### loadedChunks()

> **loadedChunks**(): `Iterable`\<\{ `x`: `number`; `z`: `number`; \}\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:148](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L148)

The chunk coordinates held in memory, used by fallbacks and world-wide reads.

###### Returns

`Iterable`\<\{ `x`: `number`; `z`: `number`; \}\>

##### randomTickChunks()?

> `optional` **randomTickChunks**(): `Iterable`\<[`RandomTickChunk`](#randomtickchunk)\>

Defined in: [packages/prismarine/src/world/WorldSystems.ts:176](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L176)

Where this tick's random draws land: Java's "a player ticket holds this chunk, and this
section of it holds something". Left out, every section of every loaded chunk is drawn
for, which is what this did before the world could answer.

###### Returns

`Iterable`\<[`RandomTickChunk`](#randomtickchunk)\>

##### randomTickSpeed()?

> `optional` **randomTickSpeed**(): `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:170](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L170)

`random_tick_speed`, which is draws per section rather than a rate.

###### Returns

`number`

##### shouldInitializeLight()?

> `optional` **shouldInitializeLight**(`chunkX`, `chunkZ`): `boolean`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:166](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L166)

Whether a newly loaded chunk should be initialized for light immediately.

###### Parameters

###### chunkX

`number`

###### chunkZ

`number`

###### Returns

`boolean`

##### tickPrecipitation()?

> `optional` **tickPrecipitation**(`chunkX`, `chunkZ`, `speed`, `nextPosition`): `void`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:182](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L182)

One chunk's ice and snow for this tick, which Java runs ahead of the chunk's random block
ticks: `speed` rolls, each drawing its column with `nextPosition` from the counter the block
ticks draw from next. Left out, nothing freezes or settles.

###### Parameters

###### chunkX

`number`

###### chunkZ

`number`

###### speed

`number`

###### nextPosition

(`originX`, `originY`, `originZ`) => [`BlockPosition`](https://jsprismarine.dev/api/@jsprismarine/lighting/index.md#blockposition)

###### Returns

`void`

##### topOfColumn()?

> `optional` **topOfColumn**(`x`, `z`): `number`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:146](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L146)

One past the highest y a column stores a block for, as
[BlockLightView.topOfColumn](https://jsprismarine.dev/api/@jsprismarine/lighting/index.md#topofcolumn) defines it.

Left out, a fresh chunk's light scan reads every block from the dimension ceiling down,
which in an Overworld is mostly open sky.

###### Parameters

###### x

`number`

###### z

`number`

###### Returns

`number`

## Type Aliases

### WorldSystemsAccess

> **WorldSystemsAccess** = [`WorldAccess`](https://jsprismarine.dev/api/@jsprismarine/engine-systems/index.md#worldaccess)

Defined in: [packages/prismarine/src/world/WorldSystems.ts:196](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L196)

The world reads and writes the engine systems use.

`@jsprismarine/engine-systems` reads and writes through one `WorldAccess`. Tick scheduling
belongs to [WorldSystems.ticks](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldSystems/classes/WorldSystems.md#ticks) and the content adapter.

## Variables

### LIGHT\_BUDGET\_PER\_TICK

> `const` **LIGHT\_BUDGET\_PER\_TICK**: `16384` = `16384`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:52](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L52)

How many queue nodes one world tick may spend on light.

A torch placed in the open queues a few hundred nodes, and a chunk of broken terrain floods a
few thousand when it is first lit. A chunk is not simulated until its first light is done
([WorldSystems.isLightReady](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldSystems/classes/WorldSystems.md#islightready)), so this number is also how soon the world around a player
who just joined starts to move: at 16384 the chunks next to the player are ready within a few
ticks and a whole light ring of broken terrain within about a hundred. The rest of a flood
finishes on the ticks that follow; [WorldSystemsReport.light](#light) says when it has.

***

### LIGHT\_CHUNKS\_PER\_TICK

> `const` **LIGHT\_CHUNKS\_PER\_TICK**: `8` = `8`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:64](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L64)

How many chunks one world tick takes into the light model.

Taking a chunk in reads each of its 256 block columns down to the ground and queues the sources
it finds. A player who joins, teleports or changes dimension puts a whole light ring of loaded
chunks in front of this at once, and taking them all in was the longest thing a tick did. Eight
a tick still queues more light in broken terrain than [LIGHT\_BUDGET\_PER\_TICK](#light-budget-per-tick) floods, so a
higher number finishes no chunk sooner there. A read that cannot wait takes in the chunks it
needs itself; see [WorldSystems.getSkyLight](https://jsprismarine.dev/api/@jsprismarine/prismarine/world/WorldSystems/classes/WorldSystems.md#getskylight).

***

### SCHEDULED\_TICK\_BUDGET\_PER\_TICK

> `const` **SCHEDULED\_TICK\_BUDGET\_PER\_TICK**: `65536` = `65536`

Defined in: [packages/prismarine/src/world/WorldSystems.ts:75](https://github.com/JSPrismarine/JSPrismarine/blob/e928b08f56694af6821b757ce6b196faebd3199c/packages/prismarine/src/world/WorldSystems.ts#L75)

How many scheduled ticks one world tick may run, per list.

Java's limit is 65536 for each of the block and fluid lists. Bedrock's is 100 per chunk,
which this server does not implement; the Java number is the one the package defaults to.

It is the only bound. A host too slow to run the batch in a tick's period ticks slower, as
Java does, and runs the same ticks a fast host runs, so a replay agrees on both.
