OverviewPacketsSubChunk
ID 0xAE · 174Server → ClientWorld
SubChunk
Sub-chunk terrain response: per-entry serialized paletted storage, render heightmaps and blob cache IDs.
sub-chunk.bin
struct SubChunk {
bool CacheEnabled;
DimensionType DimensionType;
SubChunkPos CenterPos;
varuint32 [] · SubChunkPacketData[] SubChunkData;
}Structure
| Field | Type | Description |
|---|---|---|
| Cache Enabled | bool | |
| Dimension Type | DimensionType | |
| Center Pos | SubChunkPos | |
| Sub Chunk Data | varuint32 count + SubChunkPacketData[] | Length-prefixed sequence. |
Structure of SubChunkPos
| Field | Type | Description |
|---|---|---|
| X | int32 (LE) | |
| Y | int32 (LE) | |
| Z | int32 (LE) |
Structure of SubChunkPacketData
| Field | Type | Description |
|---|---|---|
| Sub Chunk Pos Offset | SubChunkPosOffset | |
| Result | SubChunkRequestResult | |
| Serialized Sub Chunk | optional byte + string | Presence flag on the wire; value omitted when absent. |
| Height Map Data | HeightmapData | |
| Blob Id | optional byte + uint64 | Presence flag on the wire; value omitted when absent. |
Structure of SubChunkPosOffset
| Field | Type | Description |
|---|---|---|
| X | int8 (LE) | |
| Y | int8 (LE) | |
| Z | int8 (LE) |
Structure of HeightmapData
| Field | Type | Description |
|---|---|---|
| Height Map Type | HeightMapDataType | |
| Subchunk Height Map | optional byte + array[list[int8], 16] | Presence flag on the wire; value omitted when absent. |
| Render Height Map Type | HeightMapDataType | |
| Subchunk Render Height Map | optional byte + array[list[int8], 16] | Presence flag on the wire; value omitted when absent. |
SubChunkRequestResult values
0 Undefined
1 Success
2 LevelChunkDoesntExist
3 WrongDimension
4 PlayerDoesntExist
5 IndexOutOfBounds
6 SuccessAllAir (no body sent)
Notes
- No special notes.
