Set Display Objective
Play 0x62, server → client.
play · 0x62 · clientbound (server → client)
Shows an objective in a scoreboard display slot (sidebar, below name, list, or team-colored sidebar). The server sends it when /scoreboard objectives setdisplay is used. An empty name clears the slot.
Sent by the server, read by the client. Listen for it with client.on("SetDisplayObjective", (data) => …) on the receiving side.
Fields
| Field | Type | Notes |
|---|---|---|
position |
VarInt | |
name |
String |
Send it
await client.sendPacket("SetDisplayObjective", {
position: /* VarInt */,
name: /* String */,
});
Field aliases listed under Notes are accepted as alternative keys when writing.
Source: src/Core/Versions/776/Packets/play/clientbound/SetDisplayObjective.ts