MCBE
OverviewPacketsVoxelShapes
ID 0x151 · 337Server → ClientWorld

VoxelShapes

Sends the serializable voxel shapes data to the client as it's needed on both the client and server. This packet should always be sent before StartGamePacket.

voxel-shapes.bin
struct VoxelShapes {
  varuint32 [] · SerializableVoxelShape[]      Shapes;
  varuint32 [] · (string → RegistryHandle) pairs NameMap;
  uint16 (LE)                                  CustomShapeCount;
}

Structure

FieldTypeDescription
Shapesvaruint32 count + SerializableVoxelShape[]Length-prefixed sequence.
Name Mapvaruint32 count + (string → RegistryHandle) pairsLength-prefixed sequence.
Custom Shape Countuint16 (LE)

Structure of SerializableVoxelShape

FieldTypeDescription
CellsSerializableCells
X Coordsvaruint32 count + float32[]Length-prefixed sequence.
Y Coordsvaruint32 count + float32[]Length-prefixed sequence.
Z Coordsvaruint32 count + float32[]Length-prefixed sequence.

Structure of SerializableCells

FieldTypeDescription
X Sizeuint8
Y Sizeuint8
Z Sizeuint8
Storagevaruint32 count + uint8[]Length-prefixed sequence.

Notes

  • No special notes.