0x11 S11PacketSpawnExperienceOrb

Spawns an experience orb entity with position and XP value.

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

Fields

FieldTypeDescription
entityIdVarIntEntity ID
x/y/zfixed-point intPosition × 32
xpValueshortExperience point value

Wire Encoding

FieldTypeNotes
Entity IDVarInt
XIntx*32
YInty*32
ZIntz*32
CountshortXP value

MCP References

MCPNetHandlerPlayClient.handleSpawnExperienceOrb()

Handler Interface

HNDINetHandlerPlayClient

implementation Implementation Cases

XPBottler

Detect XP orbs for auto-collect.

Vanilla hook: EventReceivePacket
AutoCollect

Detect XP orbs for auto-collect.

Vanilla hook: EventReceivePacket
← Back to all packets