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

Tag Query

Play 0x7B, server → client.

play · 0x7B · clientbound (server → client)

Returns the NBT data of a block or entity that the client requested with BlockEntityTagQuery or EntityTagQuery. transactionId matches the request. The client uses it for creative-mode Ctrl+pick block copying of NBT.

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

Fields

Field Type Notes
transactionId VarInt
nbt writeAnonOptionalNbt

Send it

await client.sendPacket("TagQuery", {
  transactionId: /* VarInt */,
  nbt: /* writeAnonOptionalNbt */,
});

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

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

Was this page helpful?