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

Set Subtitle Text

Play 0x70, server → client.

play · 0x70 · clientbound (server → client)

Sets the subtitle shown under the title. The server sends it before SetTitleText; the subtitle only appears once a title is shown.

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

Fields

Field Type Notes
text NBT

Send it

await client.sendPacket("SetSubtitleText", { text: { text: "Have fun", color: "gray" } });
await client.sendPacket("SetTitleText", { text: "Welcome" });

A subtitle only appears together with a title. Send it before SetTitleText; sending it alone changes nothing on screen.

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

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

Was this page helpful?