Pick Item From Entity
Play 0x25, client → server.
play · 0x25 · serverbound (client → server)
Creative pick-block on an entity with entityId (middle-click). If includeData is set (Ctrl held), entity data is included where supported (for example armor stands, minecarts, spawn eggs). The server places the item in the hotbar and sends slot updates.
Sent by the client, read by the server. Listen for it with client.on("PickItemFromEntity", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
entityId |
VarInt | |
includeData |
Boolean |
Send it
await client.sendPacket("PickItemFromEntity", {
entityId: /* VarInt */,
includeData: /* Boolean */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/serverbound/PickItemFromEntity.ts