Skip to content

Blocks

Blocks do a lot in Minecraft, given that it's a voxel-based world. In most cases, when a block is placed or mined, the server needs to reply with a block update packet.

If this packet isn't sent, the client just assumes the packet was dropped or the client wasn't allowed to place the block, replacing it with air after a second or two.

Breaking

PacketContents
C->S Mine BlockTelling the server to destroy a block
S->C Set BlockTells the client a block was updated

Placing

PacketContents
C->S Place BlockTelling the server to place a block
S->C Set BlockTells the client a block was updated