0x11 S11PacketSpawnExperienceOrb
Spawns an experience orb entity with position and XP value.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| entityId | VarInt | Entity ID |
| x/y/z | fixed-point int | Position × 32 |
| xpValue | short | Experience point value |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Entity ID | VarInt | |
| X | Int | x*32 |
| Y | Int | y*32 |
| Z | Int | z*32 |
| Count | short | XP value |
MCP References
NetHandlerPlayClient.handleSpawnExperienceOrb()Handler Interface
INetHandlerPlayClientVanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
Deobfuscated MCP 1.8.9 source of S11PacketSpawnExperienceOrb, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S11PacketSpawnExperienceOrb.java) at build time and verified present.
Deep Dive
Role in the protocol
Spawns experience orbs: entity id, fixed-point position (x32) and a short XP value. The server splits orb value at 2000 when an XP source drops, so a large experience drop produces several S11 packets instead of one huge orb. EntityTrackerEntry.getPacket emits it for EntityXPOrb. The packet is frequent on farming servers and essentially free of state: no rotation, no velocity, no metadata.
Vanilla handling
handleSpawnExperienceOrb creates an EntityXPOrb, sets its position and assigns the xpValue. The client's XP bar is driven by pickup events and S06 health/xp updates, not by this packet, so S11 has no visible effect beyond the floating orb entity. Server side, orb value splitting happens at drop time, so the value in the packet is already the split value.
Why clients touch it
Exactly one module in the corpus references S11: Tenacity 6.0 AntiExploit, which rate-limits orb spawns as a crash-exploit guard (two S11 packets within 1 ms increments a violation counter that cancels the second packet). No AutoFarm or XP-tracker module exists in the 8 clients: XP collection modules iterate EntityXPOrb instances in the world entity list rather than hooking spawn packets, mirroring how ESP treats every other spawn packet.
Exploit surface
The orb-flood: a hostile server or proxy streaming S11 at high rate creates hundreds of EntityXPOrb instances per second, each with its own render state, which is the classic XP-lag crash vector. Tenacity's 1 ms rate gate is the canonical mitigation. The xpValue short is unsigned server-side; values above 32767 wrap negative client-side, which makes the orb render but breaks pickup logic. Nothing here is flaggable by anti-cheats because the packet is clientbound and server-authored.
Server-Side Handling
EntityTrackerEntry.getPacket returns new S11PacketSpawnExperienceOrb((EntityXPOrb) trackedEntity) for tracked XP orbs, snapshotting the orb's value. The server splits any XP drop exceeding 2000 into multiple orbs before they are tracked, so each S11 carries a value at or below the split cap. The client handler creates the orb and assigns the value with no validation.
Protocol Analysis
VarInt entity id, three x32 position ints, then a short XP value. No rotations, velocity or metadata fields. Because the value is a signed short, values in the 32768-65535 range arrive negative; the vanilla client does not guard against it. The packet is emitted in bursts when an XP source is destroyed, which is what makes it a flood-exploit vector.
Anti-Cheat Landscape
Anti-cheats ignore S11 entirely: it is clientbound, cosmetic and cannot be influenced by the player. The relevant defense is client-side (Tenacity's rate gate) and server-side (spawn rate caps on XP sources). No bypass trade-off exists for this packet.
implementation Implementation Cases
Spawns experience orbs, one of the most frequent and least stateful clientbound packets. Only one corpus hit: Tenacity 6.0 AntiExploit rate-limits S11 as a crash-exploit guard. No XP tracker exists in the 8 clients because farming modules iterate EntityXPOrb instances in the world list instead of hooking spawn packets.
Rate-limit XP orb spawns and other clientbound floods so a hostile server cannot lag or crash the client.
A PacketReceiveEvent handler tracks the timestamp of the last S11. If a new one arrives within 1 ms, invalidExperience increments and the packet is cancelled on the second violation with a chat warning; a gap longer than 1 ms resets the counter. The same handler sanitizes resource pack URIs, S43 camera teleports, S2A particle floods, S27 explosion strength and S18 teleport coordinates.
// ===== FILE: Tenacity 6.0, dev/tenacity/module/impl/misc/AntiExploit.java =====
package dev.tenacity.module.impl.misc;
import dev.tenacity.event.IEventListener;
import dev.tenacity.event.impl.packet.PacketReceiveEvent;
import dev.tenacity.module.Module;
import dev.tenacity.module.ModuleCategory;
import dev.tenacity.util.misc.ChatUtil;
import net.minecraft.network.Packet;
import net.minecraft.network.play.client.C19PacketResourcePackStatus;
import net.minecraft.network.play.server.*;
import java.net.URI;
import java.net.URISyntaxException;
public class AntiExploit extends Module {
private long lastExplosion = 0, lastExperience = 0;
private int invalidExperience = 0;
final int PACKET_THRESHOLD = 100;
final long CHECK_INTERVAL = 1000;
int packetCount = 0;
public AntiExploit() {
super("AntiExploit", "Prevents server exploits", ModuleCategory.MISC);
}
private final IEventListener<PacketReceiveEvent> onReceivePacket = event -> {
Packet<?> packet = event.getPacket();
handlePacketCount();
if(packet instanceof S48PacketResourcePackSend) {
S48PacketResourcePackSend resourcePack = (S48PacketResourcePackSend) packet;
try {
URI uri = new URI(resourcePack.getURL());
String scheme = uri.getScheme();
boolean isLevelProtocol = scheme.equalsIgnoreCase("level");
boolean isHttpProtocol = scheme.equalsIgnoreCase("http");
boolean isHttpsProtocol = scheme.equalsIgnoreCase("https");
if(!isHttpProtocol && !isHttpsProtocol && !isLevelProtocol) {
ChatUtil.print("§cBlocked Exploit: Resource Pack");
event.cancel();
} else if(isLevelProtocol && (resourcePack.getURL().contains("..") || !((S48PacketResourcePackSend) packet).getURL().endsWith("/resources.zip"))) {
ChatUtil.print("§cBlocked Exploit: File Access");
event.cancel();
mc.getNetHandler().addToSendQueue(new C19PacketResourcePackStatus(((S48PacketResourcePackSend) packet).getHash(), C19PacketResourcePackStatus.Action.FAILED_DOWNLOAD));
}
} catch (URISyntaxException exception) {
ChatUtil.print("§cBlocked Exploit: Resource Pack");
event.cancel();
mc.getNetHandler().addToSendQueue(new C19PacketResourcePackStatus(((S48PacketResourcePackSend) packet).getHash(), C19PacketResourcePackStatus.Action.FAILED_DOWNLOAD));
}
} else if(packet instanceof S43PacketCamera && !mc.thePlayer.isSpectator()) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
} else if(packet instanceof S2APacketParticles) {
S2APacketParticles particles = (S2APacketParticles) packet;
if(Math.abs(particles.getParticleSpeed()) >= 1) {
ChatUtil.print("§cBlocked Exploit: Particles");
event.cancel();
} else if(((S2APacketParticles) packet).getParticleCount() > 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
}
} else if(packet instanceof S27PacketExplosion) {
S27PacketExplosion explosion = (S27PacketExplosion) packet;
if(Math.abs(explosion.getStrength()) > 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
} else if(System.currentTimeMillis() - lastExplosion <= 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
} else if(packet instanceof S2APacketParticles) {
S2APacketParticles particles = (S2APacketParticles) packet;
if(Math.abs(particles.getParticleSpeed()) > 1) {
ChatUtil.print("§cBlocked Exploit: Particles");
event.cancel();
} else if(particles.getParticleCount() >= 1) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
}
}
lastExplosion = System.currentTimeMillis();
} else if(packet instanceof S18PacketEntityTeleport) {
S18PacketEntityTeleport teleport = (S18PacketEntityTeleport) packet;
double packetX = Math.abs(teleport.getX());
double packetY = Math.abs(teleport.getY());
double packetZ = Math.abs(teleport.getZ());
if(packetX > 30000000 || packetY > 30000000 || packetZ > 30000000) {
ChatUtil.print("§cBlocked Exploit: Teleport");
event.cancel();
}
} else if(packet instanceof S11PacketSpawnExperienceOrb) {
if(System.currentTimeMillis() - lastExperience <= 1) {
invalidExperience++;
if(invalidExperience >= 2) {
ChatUtil.print("§cBlocked Exploit: Crash");
event.cancel();
}
} else {
invalidExperience = 0;
}
lastExperience = System.currentTimeMillis();
}
};
private void triggerKick() {
ChatUtil.print("§cAbnormal packet activity detected. Kicking player...");
}
private void handlePacketCount() {
long currentTime = System.currentTimeMillis();
long lastPacketCheckTime = 0;
if (currentTime - lastPacketCheckTime > CHECK_INTERVAL) {
packetCount = 0;
lastPacketCheckTime = currentTime;
}
packetCount++;
if (packetCount > PACKET_THRESHOLD) {
triggerKick();
packetCount = 0;
}
}
}
// NOTE (AI): The S11 branch is a crash-exploit guard: two XP orb spawn packets inside 1 ms increment invalidExperience, and the second violation cancels the packet and prints a chat warning. The module is a general clientbound sanitizer covering resource pack URI validation, camera teleport abuse, particle and explosion floods, and giant teleport coordinates, with S11 as one of the flood classes.anticheat Anti-Cheat Checks
The experience-orb spawn packet has zero hits in the 50-anticheat corpus: no anticheat references S11PacketSpawnExperienceOrb or its ProtocolLib name. The packet is clientbound, server-authored, and carries no player claim that a server-side check could validate. Anti-cheats ignore it entirely; the only defense that exists in the wider ecosystem is client-side rate limiting against server floods, which is outside the anticheat corpus.
Related Packets
Wiki Cross-Reference
VarInt entityId, three fixed-point ints decoded x/32, then a short XP count; no rotation, velocity or metadata fields.
Server splits drops above 2000 XP into multiple orbs, so big rewards arrive as bursts; classic orb-flood lag vector.
MCP 1.8.9 S11PacketSpawnExperienceOrb implements Packet
1.8.9 callers: EntityTrackerEntry.? sends new S11PacketSpawnExperienceOrb (line 627): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/EntityTrackerEntry.java
Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.
Vanilla Internals
Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.
Module Analyses Using S11PacketSpawnExperienceOrb
Full source walkthroughs of the modules and anti-cheats that use this packet.