Skip to content

Mine

Packet IDDirectionMojang NameMCP Name
0x0EServerboundPlayerActionPacketPacket14BlockDig

Serverbound

Sent to the server when the player attempts to mine a block. If a block is mined, this must be followed up by a block update packet that turns it into air!

FieldTypeDescription
StatusByteThe action the player is taking against the block
XIntegerThe X position of the block
YByteThe Y position of the block
ZIntegerThe Z position of the block
FaceByteThe face of the block that's being mined

The status can represent one of three values.

StatusValue
Started digging0
Finished digging2
Drop item4

Started digging is sent whenever a client wants to start mining a block. Finished digging is only sent when the client thinks its broken a block. as a result, it should be checked on the server-side if the amount of time the client took to break the block is appropriate. If a client stops breaking a block the server isn't informed of this.

Drop item is sent by the client whenever an item should be dropped from the player, such as when Q is pressed or when items are clicked outside of an inventory.

The face can be one of six values, representing the face being hit.

Value012345
Face-Y+Y-Z+Z-X+X

Example Packet

Serverbound

FieldValue
Status0 (Started Digging)
X-6231
Y53
Z563
Face3 (+Z)