OverviewPacketsUpdateBlock
ID 0x15 · 21BothWorld
UpdateBlock
Changes a single block in the world, with the block's runtime (hash) ID and the update flags.
update-block.bin
struct UpdateBlock {
BlockPos Pos;
varuint32 RuntimeId;
varuint32 UpdateFlags;
varuint32 Layer;
}Structure
| Field | Type | Description |
|---|---|---|
| Pos | BlockPos | |
| Runtime Id | varuint32 | |
| Update Flags | varuint32 | |
| Layer | varuint32 |
Structure of BlockPos
| Field | Type | Description |
|---|---|---|
| X | varint32 | |
| Y | varint32 | |
| Z | varint32 |
Notes
- Block runtime IDs are hashed network IDs when StartGame's Block Network Ids Are Hashes is set.
- Layer 1 is the liquid layer used for waterlogging.
- Flags: 1 = propagate to neighbours, 2 = network (send to clients), 4 = no graphic, 8 = priority.
