Skip to content

World data: sections, columns, entities

WIP: not implemented yet or partly. Follow: #98, #152, #324, #738

This page shows how mcrs lays out a world in memory: blocks in sections and columns, and mobs as ECS entities. The layout is settled for blocks and still moving for entities and for the world-access API. If you know Paper, expect two changes. A “chunk” is two different things here, and a mob is not an object.

A dimension holds columns, and a column holds sections

Section titled “A dimension holds columns, and a column holds sections”
Level Size What it is for
Section 16 x 16 x 16 blocks the unit of block storage, light and palette compression
Column 16 x height x 16 blocks a vertical stack of sections; it owns the heightmaps
Dimension unbounded the top container; it owns the column index and the section index

mcrs says “section” and “column” and avoids a bare “chunk”, because “chunk” does not say which of the two it means. The glossary defines both terms.

In the engine, each of the three levels is an ECS entity with a marker component that tags what the entity is. The markers are Section, Column and Dimension in mcrs_minecraft_engine_world. The position types BlockPos, SectionPos and ColumnPos are coordinate types in mcrs_voxel. Block data inside a section uses a palette.

By default, each dimension has one cell with its own Bevy world and tick. With several static cells, each cell has its own world, and a local query sees only that cell’s entities. Cells and the road to many nodes builds on this, and so do the dimension plugins you write in Dimensions are separate worlds.

Player tickets keep columns loaded and supply simulation coverage. Loading tickets live on columns; simulation coverage and section stages live in the world module’s lifecycle/ code. Cold space stays outside the active simulation.

Volumes become the one API for reading the world

Section titled “Volumes become the one API for reading the world”

Several code paths read blocks: the chunk crate, the world generator, the light engine, the mesher and the client. Each of them had a view of its own and answered “section not loaded” in its own way. One layer-3 crate called mcrs_minecraft_volume now gives them one API.1

A volume has bounds. For each section it says whether the section may be written, is read-only, belongs to another owner, is not loaded, or is outside. Nothing loads on access, and errors are types you can match.

Capabilities are separate traits for blocks, biomes, heights, light and block entities, with mutable forms for blocks and block entities. The traits are generic, so there is no dynamic dispatch per block. The main path works per section and per palette, and access per block is a cursor over that path.

The engine dimension view, heights and biomes, snapshots and light, meshing and the client store have moved to it. A saved Anvil chunk is not read as a volume, and structure templates keep their own placement, block by block in the order of the template.

Mobs, items and falling blocks are Bevy entities. Their motion lives in the components MotionState, MotionKind and MotionId from mcrs_minecraft_engine_entity_motion. A mob also has attributes. A mob with an installed, supported brain has the AI component BrainState; it is absent when AI is disabled or no brain is available for that type. The motion pass updates their components in parallel against a frozen body grid; How a tick runs in parallel explains the order.

A player is also a Bevy entity, tagged Player, with components such as Transform, PlayerGameMode and Vitals. Its movement follows a separate path. The AI player table is built from these components, and publish_player_tiles queries them to emit replication events. Body-grid rows and AI table rows are projections used by those consumers. They do not replace the entity or own another copy of its health.

Your systems can query mob components in the dimension world. Players and mobs share Vitals; the damage queue applies hits to both, as Handle damage, death and respawn describes. The library API can still change. A complete accounting of memory per section and entity remains unfinished.2

Next: How a tick runs in parallel.

  1. Works#486 One world-access API for every consumer, built on volumes. ↩

  2. WIP#324 Tracks fixed component sizes and a count of section memory. ↩

Sources and verification

Verified: 26.4-snapshot-7, 1cf84286c, 2026-11-30

Related open issues:

  • #98 WIP Query entities by area through the per-section index
  • #152 WIP Sections as the shared spatial index, with one writer per region file
  • #324 WIP Pin the size of per-section and per-entity components and count section memory
  • #738 WIP Typed save layouts for block entities and nested entities