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

Take Item Entity

Play 0x7C, server → client.

play · 0x7C · clientbound (server → client)

Plays the pickup animation of an item or arrow entity flying into a collector. The server sends it when an entity picks up an item; pickupItemCount is the amount taken. The client only animates; the actual removal comes via RemoveEntities.

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

Fields

Field Type Notes
collectedEntityId VarInt
collectorEntityId VarInt
pickupItemCount VarInt

Send it

await client.sendPacket("TakeItemEntity", {
  collectedEntityId: /* VarInt */,
  collectorEntityId: /* VarInt */,
  pickupItemCount: /* VarInt */,
});

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

Source: src/Core/Versions/776/Packets/play/clientbound/TakeItemEntity.ts

Was this page helpful?