Entity Tag Query
Play 0x19, client → server.
play · 0x19 · serverbound (client → server)
Requests the NBT of the entity with entityId. Only honoured for operators (permission level 2+). The server replies with TagQuery using the same transactionId; the client uses this for Ctrl+pick-block on entities in creative mode.
Sent by the client, read by the server. Listen for it with client.on("EntityTagQuery", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
transactionId |
VarInt | |
entityId |
VarInt |
Send it
await client.sendPacket("EntityTagQuery", {
transactionId: /* VarInt */,
entityId: /* VarInt */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/serverbound/EntityTagQuery.ts