---
title: Set Creative Mode Slot
description: "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

```ts
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`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/serverbound/SetCreativeModeSlot.ts)
