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
| Field | Type | Description |
|---|---|---|
| Shapes | varuint32 count + SerializableVoxelShape[] | Length-prefixed sequence. |
| Name Map | varuint32 count + (string → RegistryHandle) pairs | Length-prefixed sequence. |
| Custom Shape Count | uint16 (LE) |
Structure of SerializableVoxelShape
| Field | Type | Description |
|---|---|---|
| Cells | SerializableCells | |
| X Coords | varuint32 count + float32[] | Length-prefixed sequence. |
| Y Coords | varuint32 count + float32[] | Length-prefixed sequence. |
| Z Coords | varuint32 count + float32[] | Length-prefixed sequence. |
Structure of SerializableCells
| Field | Type | Description |
|---|---|---|
| X Size | uint8 | |
| Y Size | uint8 | |
| Z Size | uint8 | |
| Storage | varuint32 count + uint8[] | Length-prefixed sequence. |
Notes
- No special notes.
