← Packet index

Packet 174

SubChunkPacket

Sent from server to client representing a batch of subchunk data.

Contains subchunk terrain data, heightmaps, and optional blob cache IDs.

Packet datagramWire order
HeaderID 174varuint
0Cache Enabledboolean · 1 byte
1Dimension TypeDimensionType · variable
2Center PosSubChunkPos · variable
3SubChunk Dataarray<SubChunkPacketData> · variable

Serialized fields

4 top-level fields
  1. 0Cache EnabledWhether client supports blob caching.boolean
  2. 1Dimension TypeThe dimension where the subchunk data belongs.DimensionType
    1. 0valueCompressionvarint32
  3. 2Center PosThe centroid of the subchunk positions for translating relative to absolute.SubChunkPos
    1. 0Subchunk Position Xint32
    2. 1Subchunk Position Yint32
    3. 2Subchunk Position Zint32
  4. 3SubChunk DataCollection of subchunk data entries.SubChunkPacketDataas array<SubChunkPacketData>
    1. 0SubChunk Pos OffsetRelative position based on the center of the subchunk batch.SubChunkPosOffset
      1. 0Subchunk Offset XRelative X offset from center position.int8
      2. 1Subchunk Offset YRelative Y offset from center position.int8
      3. 2Subchunk Offset ZRelative Z offset from center position.int8
    2. 1SubChunk Request ResultResult of the subchunk request.Enum-as-Valueuint8
      1. 1Success
      2. 2LevelChunkDoesntExist
      3. 3WrongDimension
      4. 4PlayerDoesntExist
      5. 5IndexOutOfBounds
      6. 6SuccessAllAir
    3. 2Serialized Sub ChunkoptionalSerialized subchunk binary data, absent when cache enabled and result is SuccessAllAir.string
    4. 3Height Map DataHeight map data for this subchunk.SubChunkHeightmapData
      1. 0Height Map TypeType of height map data for this subchunk.Enum-as-Valueuint8
        1. 0NoData
        2. 1HasData
        3. 2AllTooHigh
        4. 3AllTooLow
      2. 1Subchunk Height Mapoptional2D height map array [z][x], present when type is HasData.array<array<int8>>
      3. 2Render Height Map TypeType of render height map data for this subchunk.Enum-as-Valueuint8
        1. 0NoData
        2. 1HasData
        3. 2AllTooHigh
        4. 3AllTooLow
        5. 4AllCopied
      4. 3Subchunk Render Height Mapoptional2D render height map array [z][x], present when type is HasData.array<array<int8>>
    5. 4Blob IdoptionalBlob cache ID, present when the subchunk data was queued in the cache transfer builder.uint64

Changelog

Stable releases

Changes between stable protocol releases.

No stable release changes are recorded for this packet.