0x0A S0APacketUseBed

Makes the player lie down in a bed at the specified position.

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S0APacketUseBed.java
playerbedanimation

Fields

FieldTypeDescription
playerVarIntPlayer entity ID
bedPosBlockPosBed block position

Wire Encoding

FieldTypeNotes
Entity IDVarInt
Bed PositionBlockPos (long)

MCP References

MCPNetHandlerPlayClient.handleUseBed()

Handler Interface

HNDINetHandlerPlayClient

implementation Implementation Cases

AntiBed

Detect when another player sleeps in a bed.

Vanilla hook: EventReceivePacket
BedAura

Detect when another player sleeps in a bed.

Vanilla hook: EventReceivePacket
← Back to all packets