Skip to content

Use Bed

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 sleeping mode and displays the "Leave Bed" UI.

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
UnusedByteAlways 0
XIntegerThe X position of beds headboard
YByteThe Y position of beds headboard
ZIntegerThe Z position of beds headboard

Example Packet

Clientbound

FieldValue
Entity ID1
Unused0
X53
Y75
Z-54