Skip to content
mc-protocol
Esc
↑↓navigate↵open⌘Jpreview
On this page

Pick Item From Block

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

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

Was this page helpful?