---
title: Pick Item From Block
description: "Play 0x24, client → server."
---

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

Creative pick-block on a block at `position` (middle-click). If `includeData` is set (Ctrl held), the block entity data is included. The server puts the matching item in the hotbar, swapping into the inventory if needed, and sends the slot updates.

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

## Fields

| Field | Type | Notes |
|---|---|---|
| `position` | Position | also `location` |
| `includeData` | Boolean |  |

## Send it

```ts
await client.sendPacket("PickItemFromBlock", {
  position: /* Position */,
  includeData: /* Boolean */,
});
```

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

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