Set Creative Mode Slot
Play 0x38, client → server.
play · 0x38 · serverbound (client → server)
Sets an inventory slot directly in creative mode. slot is the inventory slot number (or -1 to drop the item into the world) and item is the new stack. The server accepts it only for creative players, after validating the item.
Sent by the client, read by the server. Listen for it with client.on("SetCreativeModeSlot", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
slot |
Short | |
item |
UntrustedSlot | also clickedItem |
Send it
await client.sendPacket("SetCreativeModeSlot", {
slot: /* Short */,
item: /* UntrustedSlot */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/serverbound/SetCreativeModeSlot.ts