0x0D S0DPacketCollectItem

Shows an item being collected (picked up) by a player entity. Plays the pickup animation.

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

Published 2026-06-18 · Updated 2026-10-14

entityitemanimation
Comprehensive 7/8

Fields

FieldTypeDescription
itemEntityIdVarIntThe item entity being collected
collectorEntityIdVarIntThe player collecting the item

Wire Encoding

FieldTypeNotes
Collector IDVarIntItem entity ID
Collecting Player IDVarIntPlayer entity ID

MCP References

MCPNetHandlerPlayClient.handleCollectItem()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S0DPacketCollectItem.java58 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
8
public class S0DPacketCollectItem implements Packet<INetHandlerPlayClient>
9
{
10
    private int collectedItemEntityId;
11
    private int entityId;
12
13
    public S0DPacketCollectItem()
14
    {
15
    }
16
17
    public S0DPacketCollectItem(int collectedItemEntityIdIn, int entityIdIn)
18
    {
19
        this.collectedItemEntityId = collectedItemEntityIdIn;
20
        this.entityId = entityIdIn;
21
    }
22
23
    /**
24
     * Reads the raw packet data from the data stream.
25
     */
26
    public void readPacketData(PacketBuffer buf) throws IOException
27
    {
28
        this.collectedItemEntityId = buf.readVarIntFromBuffer();
29
        this.entityId = buf.readVarIntFromBuffer();
30
    }
31
32
    /**
33
     * Writes the raw packet data to the data stream.
34
     */
35
    public void writePacketData(PacketBuffer buf) throws IOException
36
    {
37
        buf.writeVarIntToBuffer(this.collectedItemEntityId);
38
        buf.writeVarIntToBuffer(this.entityId);
39
    }
40
41
    /**
42
     * Passes this Packet on to the NetHandler for processing.
43
     */
44
    public void processPacket(INetHandlerPlayClient handler)
45
    {
46
        handler.handleCollectItem(this);
47
    }
48
49
    public int getCollectedItemEntityID()
50
    {
51
        return this.collectedItemEntityId;
52
    }
53
54
    public int getEntityID()
55
    {
56
        return this.entityId;
57
    }
58
}

Deobfuscated MCP 1.8.9 source of S0DPacketCollectItem, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S0DPacketCollectItem.java) at build time and verified present.

Deep Dive

Role in the protocol

S0D plays the item pickup animation: a VarInt item-entity id and a VarInt collector-entity id. The server emits it from EntityLivingBase.onCollideWithPlayer, which sends up to three tracking broadcasts per pickup depending on the item-count branch. The client spawns the collect particles, plays the sound and removes the item entity. It is a pure presentation packet.

Vanilla handling

NetHandlerPlayClient.handleCollectItem removes the item entity by id, spawns the pickup particles and plays the collect sound. Nothing on the client validates the collector id; the animation is cosmetic. The server side is equally dumb: three sendToAllTrackingEntity calls in onCollideWithPlayer with no rate limiting.

Why clients touch it

Almost nobody. The single functional hit is Rise 6.x AdaptiveRefreshRateComponent, which uses S0D as a cheap game-activity signal: an item pickup forces the HUD cache dirty for 5 ticks so the adaptive refresh rate does not sleep through pickups. Everything else in the corpus is vanilla. The ItemESP and ItemStealer families that one might expect to care about pickups do not hook S0D in these clients: they track item entities directly on the entity list.

Exploit surface

None. S0D carries two entity ids and drives only particles and a despawn. There is no state, no timing heuristic and no anti-cheat that measures pickups, so modules have nothing to cancel, spoof or time. The honest assessment is that S0D is the least interesting packet in this range: its only corpus use is a HUD perf component treating it as an activity tick.

Server-Side Handling

EntityLivingBase.onCollideWithPlayer sends S0D through the entity tracker in three branches covering the pickup conditions, each a sendToAllTrackingEntity with the item entity id and the collector's own id. No server-side rate limit or validation exists.

Protocol Analysis

Two VarInts: collected item entity id first, collector player id second (the vanilla constructor takes (collectedItemEntityId, entityId)). Clientbound in PLAY state. The collector id is not required to be the local player, which is why the packet also animates other players' pickups.

Anti-Cheat Landscape

Nothing to flag. No anti-cheat measures item pickups, and the packet carries no position or timing data. The only ecosystem interaction is visual: a client that suppresses S0D would still receive the items in inventory, so even packet-cancelling modules would gain nothing.

implementation Implementation Cases

The pickup animation packet: item entity id plus collector id, driving particles, sound and a despawn. Module interest is essentially zero: the only functional use in the whole corpus is Rise's AdaptiveRefreshRateComponent, which treats S0D as a game-activity signal to keep the HUD refresh awake.

AdaptiveRefreshRateComponent (Rise 6.2.4, Rise 6.1.30)

Keep the HUD refresh awake around pickups: an S0D forces the HUD cache dirty for 5 ticks so the adaptive refresh does not sleep through game activity.

On PacketReceiveEvent, S0D sets disabledFor = 5, which disables the adaptive refresh for that many ticks in PreMotionEvent; S02 chat, S30 window items and S2F slot updates drive the same dirty path. The component runs at component level in the HUD module tree.

Source: Rise 6.1.30 - com/alan/clients/component/impl/hud/AdaptiveRefreshRateComponent.java

Vanilla hook: PacketReceiveEvent (S0D), PreMotionEvent (tick accounting), Render2DEvent.
None: the component mutates only the local HUD cache and never touches the packet or the wire.
Variations: Identical in 6.1.30 and 6.2.4; no other client in the corpus references S0D in non-vanilla code.
PacketReceiveEvent only, and only in Rise 6.x; the component model is the sole consumer.
Rise 6.1.30 and 6.2.4 share the component; Memeware, Nekoware, Sigma, Spicy and Tenacity have no non-vanilla S0D code at all.

anticheat Anti-Cheat Checks

The collect-item packet has zero hits in the 50-anticheat corpus. It carries two entity ids and drives only a particle burst, a sound and a despawn; there is nothing to measure and nothing to flag. The honest summary is that no anticheat references S0D, matching its role as pure presentation.

Wiki Cross-Reference

The packet only plays the pickup animation flying the item toward the collector and does not destroy the entity in client memory or add it to the inventory, so a destroy packet handles removal.

The collector and collected entities can be any entity, though the vanilla server only uses it for items, experience orbs and projectiles such as arrows.

MCP 1.8.9 S0DPacketCollectItem implements Packet dispatching to INetHandlerPlayClient.handleCollectItem; wire serde is readPacketData/writePacketData via readVarIntFromBuffer.

1.8.9 callers: EntityLivingBase.onItemPickup sends new S0DPacketCollectItem (line 2137): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/EntityLivingBase.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.