---
title: Set Carried Item
description: "Play 0x35, client → server."
---

`play` · `0x35` · **serverbound** (client → server)

Changes the selected hotbar slot. `slotId` is 0-8. The server updates the player's held item and relays the equipment change to nearby players.

Sent by the client, read by the server. Listen for it with `client.on("SetCarriedItem", (data) => …)` on the receiving side.

## Fields

| Field | Type | Notes |
|---|---|---|
| `slotId` | Short |  |

## Send it

```ts
await client.sendPacket("SetCarriedItem", {
  slotId: /* Short */,
});
```

Field aliases listed under Notes are accepted as alternative keys when writing.

Source: [`src/Core/Versions/776/Packets/play/serverbound/SetCarriedItem.ts`](https://github.com/GDLev/mc-protocol/blob/master/src/Core/Versions/776/Packets/play/serverbound/SetCarriedItem.ts)
