MCBE
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

FieldTypeDescription
PosBlockPos
Runtime Idvaruint32
Update Flagsvaruint32
Layervaruint32

Structure of BlockPos

FieldTypeDescription
Xvarint32
Yvarint32
Zvarint32

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.