Skip to content

Interact with Block

Packet IDDirectionMojang NameMCP Name
0x11ClientboundEntityActionAtPositionPacketPacket17Sleep

Clientbound

This packet is sent when there are at least 2 more more players on a server, and at least one player uses the bed.

When the Entity ID of the client and the packet are the same, the player is put into sleep mode and the "leave bed" button is shown.

If the Entity ID is that of another player, the relevant entity will lay down in the bed.

FieldTypeDescription
Entity IDIntegerThe ID of the entity that did the action
TypeByte0 for sleeping
XIntegerThe X position of bed's headboard
YByteThe Y position of bed's headboard
ZIntegerThe Z position of bed's headboard

Example Packet

Clientbound

FieldValue
Entity ID1
Type0
X53
Y75
Z-54