0x10 C10PacketCreativeInventoryAction

Player sets the contents of a slot in creative mode. Used to spawn items or modify inventory contents directly.

Serverbound (Client → Server) · PLAY · net/minecraft/network/play/client/C10PacketCreativeInventoryAction.java

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

playerinventorycreativeitem
Comprehensive 8/8

Fields

FieldTypeDescription
slotIdshortSlot index (-1 for cursor, 0-44 for inventory, 100-104 for armor)
stackItemStackItemStack to place (null = clear slot)

Wire Encoding

FieldTypeNotes
Slotshort-1=cursor, 0-44=inv, 100-104=armor
Clicked ItemSlotItemStack or null

MCP References

MCPNetHandlerPlayServer.processCreativeInventoryAction()

Handler Interface

HNDINetHandlerPlayServer

Notes

Only processed by the server if the player is in creative mode (gamemode=1). Ignored silently in survival. Can set ANY slot including armor (100-104) and offhand slots. No known hacked client modules directly target this packet. It's used by vanilla creative mode mechanics. Gugustus has a CreativeGive command that constructs C10 via addToSendQueue.

Vanilla Source

C10PacketCreativeInventoryAction.java59 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.client;
2
3
import java.io.IOException;
4
import net.minecraft.item.ItemStack;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayServer;
8
9
public class C10PacketCreativeInventoryAction implements Packet<INetHandlerPlayServer>
10
{
11
    private int slotId;
12
    private ItemStack stack;
13
14
    public C10PacketCreativeInventoryAction()
15
    {
16
    }
17
18
    public C10PacketCreativeInventoryAction(int slotIdIn, ItemStack stackIn)
19
    {
20
        this.slotId = slotIdIn;
21
        this.stack = stackIn != null ? stackIn.copy() : null;
22
    }
23
24
    /**
25
     * Passes this Packet on to the NetHandler for processing.
26
     */
27
    public void processPacket(INetHandlerPlayServer handler)
28
    {
29
        handler.processCreativeInventoryAction(this);
30
    }
31
32
    /**
33
     * Reads the raw packet data from the data stream.
34
     */
35
    public void readPacketData(PacketBuffer buf) throws IOException
36
    {
37
        this.slotId = buf.readShort();
38
        this.stack = buf.readItemStackFromBuffer();
39
    }
40
41
    /**
42
     * Writes the raw packet data to the data stream.
43
     */
44
    public void writePacketData(PacketBuffer buf) throws IOException
45
    {
46
        buf.writeShort(this.slotId);
47
        buf.writeItemStackToBuffer(this.stack);
48
    }
49
50
    public int getSlotId()
51
    {
52
        return this.slotId;
53
    }
54
55
    public ItemStack getStack()
56
    {
57
        return this.stack;
58
    }
59
}

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

Deep Dive

Role in the protocol

C10 is the creative-mode inventory writer: a short slot id plus an ItemStack. Slot -1 addresses the cursor stack, slots 1 through 44 the survival inventory grid. The server only enters the handler when the player's gamemode is creative, and inside it applies its own bounds check: flag1 is true only for slots 1 to 44 inclusive, so slot 0, armor slots and the cursor path all fall through to a different branch. In vanilla it is emitted by PlayerControllerMP whenever the creative inventory GUI places or drops an item.

Vanilla handling

processCreativeInventoryAction first, and before any slot validation, inspects the incoming stack's NBT: if it carries a BlockEntityTag with x/y/z keys, the server reads the tile entity at that position and rewrites the tag from the live tile entity NBT. Only then does it validate: flag1 (slot bounds), flag2 (item id non-null), flag3 (metadata >= 0, stackSize 1..64). Valid inventory slots go through putStackInSlot; the cursor branch (slotId < 0) drops the item as an EntityItem with creative despawn age and increments itemDropThreshold by 20, capped at 200. Everything is skipped entirely for non-creative players.

Why clients touch it

None of the original 8 clients ships an inventory-scripting or ItemSpoof module that drives C10 directly; LiquidSense Dev's InventoryUtils.updateInventory does: it re-sends the full 44-slot main inventory as creative actions to force the server's copy back in sync. The remaining corpus hits are infrastructure. Rise 5.99 Crasher uses it in Window mode to inject a book with a deeply nested JSON page into slot 0. Rise 5.99 Freecam allow-lists C10 so creative actions keep working with a detached camera, and Tenacity 6.0's PacketUtil.isClientPacket whitelists it for the silent send helpers. That is the entire module surface.

Exploit surface

The handler's ordering is the interesting part: BlockEntityTag processing runs before slot bounds, so a crafted stack forces a tile entity lookup even when the slot is invalid. Slot 0 and the cursor branch bypass putStackInSlot entirely, which means a creative client can push arbitrary NBT-bearing items at the server without them landing in inventory. Anti-cheats with creative checks (NCP's inventory heuristics, custom gamemode guards) flag C10 sent while the server-side gamemode is not creative; the packet is a silent no-op there, so the main abuse channel is the NBT payload itself.

Server-Side Handling

processCreativeInventoryAction: gamemode gate, BlockEntityTag sync, then flag1/flag2/flag3 validation. Slots 1..44 go through putStackInSlot, slot -1 drops the item as a creative-despawn EntityItem (itemDropThreshold +20 per drop, max 200), everything else is ignored. ItemStacks are not re-serialized against an item registry beyond getItem() != null, so crafted NBT survives to any plugin that reads the slot.

Protocol Analysis

short slotId (signed) + Slot-encoded ItemStack (short item id, byte count, short damage, optional NBT). Sent in PLAY state only. The client never sends it in survival: PlayerControllerMP.windowClick paths to C0EPacketClickWindow instead, so a survival server receiving C10 is already anomalous.

Anti-Cheat Landscape

Anti-cheats that mirror the server gamemode flag C10 from a survival player as an inventory exploit attempt. Creative-gamemode servers rarely monitor it, which is exactly why crash payloads ride this packet: the handler still parses and processes NBT before the gamemode logic can matter to plugins.

implementation Implementation Cases

The creative-only inventory writer. No ItemSpoof-style module exists in the original 8 clients; LiquidSense Dev's InventoryUtils re-sends the whole inventory through C10, and elsewhere C10 appears as a crash payload carrier (Rise 5.99 Crasher Window mode), a freecam whitelist entry, and a silent-send whitelist entry in Tenacity.

Crasher (Window) (Rise 5.99)

Inject a writable book carrying a deeply nested JSON page into slot 0 via C10 to crash servers whose chat/JSON parser chokes on the recursion.

On PreMotionEvent, Window mode builds an NBTTagList whose single string is ~830 stacked {extra:[{...}} tokens, attaches it to a writable book, and sends C10 with slot 0. Runs every tick while enabled.

Source: Rise 5.99, dev/rise/module/impl/other/Crasher.java

Vanilla hook: onPreMotion (PreMotionEvent), PacketUtil.sendPacket.
Only effective on creative-gamemode servers; on survival the handler is a no-op. The nested JSON targets server-side text/chat parsing, so the flag surface is the payload content, not the packet rate.
Variations: The same module's Click, Window, BEdit and One Packet modes push equivalent book NBT through C0EPacketClickWindow and C17PacketCustomPayload (MC|BEdit).
Freecam (whitelist) (Rise 5.99)

Allow C10 through while freecam is active so creative inventory actions still reach the server from the detached camera.

onPacketSend cancels every serverbound packet not in an explicit allow list; C10 (with C12, C0E, C16, C02 and a few others) is in the list. Everything else, including C03 movement, is suppressed so the server keeps the player frozen.

Source: Rise 5.99, dev/rise/module/impl/render/Freecam.java

Vanilla hook: onPacketSend (PacketSendEvent).
Not a C10-specific exploit; the whitelist is the module's general anti-desync mechanism. No anti-cheat measures freecam whitelists directly, movement suppression is what gets flagged.
Variations: No other client in the corpus has a comparable whitelist for C10.
PacketUtil (silent whitelist) (Tenacity 6.0)

Classify C10 as a legitimate client packet so Tenacity's packet helpers route it through the send path.

isClientPacket returns true for every play-state serverbound packet including C10. The helper exists because Tenacity's packet send event historically let serverbound and clientbound packets through; the whitelist gates which ones the event system treats as client traffic.

Source: Tenacity 6.0, dev/tenacity/util/network/PacketUtil.java

Vanilla hook: Packet send helper, no event hook.
No detection relevance; purely an internal routing gate.
Variations: Rise 5.99's PacketUtil has no equivalent whitelist; the same file in Tenacity also covers C11 through C19, which is why it reappears across several of these impl pages.
InventoryUtils (creative inventory sync) (LiquidSense Dev)

Force the server's creative inventory copy back in sync by re-sending every main-inventory slot as a C10 creative action.

updateInventory() loops slots 0..43 (offset 36 for the first nine to map the hotbar, 0 for the rest), and for each adds C10PacketCreativeInventoryAction(index + offset, mainInventory[index]) to the send queue. The rest of the class is armor and weapon scoring used by the AquaVit module set.

Source: LiquidSense Dev, me/AquaVit/liquidSense/API/InventoryUtils.java

Vanilla hook: Direct addToSendQueue, no event bus.
Only works in creative gamemode; the server drops C10 from survival players, so the resync is a no-op there. The slots map to the survival grid 1..44, which is exactly the flag1-valid range.
Variations: AquaVit modules call updateInventory after local inventory edits; the LiquidBounce core has no equivalent resync helper.
No client hooks C10 in a dedicated module; it is reached through generic PacketSendEvent interception (Rise 5.99) or helper whitelists (Tenacity). LiquidSense Dev drives C10 through a direct addToSendQueue call in a static utility, not through an event hook.
Rise 5.99 constructs the packet directly with a forged ItemStack; Tenacity only classifies it. Memeware, Nekoware, Sigma, Spicy and both Rise 6.x builds touch C10 solely through the vanilla PlayerControllerMP path. November Recode 2.0 registers C10 in its LuaEventPacket scripting id map (0x10) but has no module that constructs it.

anticheat Anti-Cheat Checks

Server-side anticheats treat the creative-inventory packet as the creative-mode inventory mutation stream. The corpus is thin: Grim keeps a simulated inventory in sync by applying the slot writes, and LightAntiCheat flags the packet when a non-creative player sends it. Most other corpus hits are gamemode-flag reads inside movement checks, not listeners for this packet.

CreativeInventoryAction tracking (Grim) (GrimAnticheat-Grim)

Keep the simulated inventory in sync with creative slot writes so item-dependent checks see the items the client claims to hold.

Listens for CREATIVE_INVENTORY_ACTION and returns unless the player is in creative mode. The slot is validated against the 1.8 boundary (slots 1-44 on 1.8, 1-45 after) before the stack is written into the compensated inventory and the slot is marked as client-claimed.

Detects: Nothing directly. It is the feed that keeps enchantment and held-item state accurate in creative mode, and out-of-range slot values are dropped instead of crashing the simulation.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/utils/latency/CompensatedInventory.java

Variations: Artemis ships only the GPacketPlayClientSetCreativeSlot wrapper, and Negativity registers SET_CREATIVE_SLOT in its PacketType table, but neither runs a check on this packet.
BadPacketsD (LightAntiCheat) (tiredvekster-LightAntiCheat)

Flag creative-slot packets sent by players who are not in creative mode.

On SET_CREATIVE_SLOT, the check skips when the player is already creative or changed gamemode less than 500 ms ago, so a fresh switch to creative does not false-flag. It re-checks the condition one tick later to ride out lag, then flags.

Detects: Clients that send creative inventory packets in survival, which is the primitive behind item-spoof and creative-give exploits.

Source: tiredvekster-LightAntiCheat, src/main/java/me/vekster/lightanticheat/check/checks/packet/badpackets/BadPacketsD.java

Variations: No other anticheat in the corpus runs this check; the rest of the C10 corpus is wrapper and gamemode plumbing.

Wiki Cross-Reference

Picking up an item from the creative listings sends no packet until it is placed somewhere; picking an item up deletes it from the server while placing or dropping it tells the server to create it from scratch, which can be verified by disconnecting mid-drag. The destroy-item slot is a client-side detail meaning the item is simply not recreated.

MCP 1.8.9 C10PacketCreativeInventoryAction implements Packet dispatching to INetHandlerPlayServer.processCreativeInventoryAction; wire serde is readPacketData/writePacketData via readItemStackFromBuffer, readShort.

1.8.9 callers: PlayerControllerMP.sendSlotPacket sends new C10PacketCreativeInventoryAction (line 561): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/client/multiplayer/PlayerControllerMP.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 C10PacketCreativeInventoryAction

Full source walkthroughs of the modules and anti-cheats that use this packet.