MCBE
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

FieldTypeDescription
Cache Enabledbool
Dimension TypeDimensionType
Center PosSubChunkPos
Sub Chunk Datavaruint32 count + SubChunkPacketData[]Length-prefixed sequence.

Structure of SubChunkPos

FieldTypeDescription
Xint32 (LE)
Yint32 (LE)
Zint32 (LE)

Structure of SubChunkPacketData

FieldTypeDescription
Sub Chunk Pos OffsetSubChunkPosOffset
ResultSubChunkRequestResult
Serialized Sub Chunkoptional byte + stringPresence flag on the wire; value omitted when absent.
Height Map DataHeightmapData
Blob Idoptional byte + uint64Presence flag on the wire; value omitted when absent.

Structure of SubChunkPosOffset

FieldTypeDescription
Xint8 (LE)
Yint8 (LE)
Zint8 (LE)

Structure of HeightmapData

FieldTypeDescription
Height Map TypeHeightMapDataType
Subchunk Height Mapoptional byte + array[list[int8], 16]Presence flag on the wire; value omitted when absent.
Render Height Map TypeHeightMapDataType
Subchunk Render Height Mapoptional 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.