0x3D S3DPacketDisplayScoreboard

Sets which scoreboard objective is displayed in a position (sidebar, list, below name).

Clientbound (Server → Client) · PLAY · net/minecraft/network/play/server/S3DPacketDisplayScoreboard.java

Published 2026-06-18 · Updated 2026-10-14

scoreboarddisplay
Comprehensive 7/8

Fields

FieldTypeDescription
positionbyte0=sidebar, 1=playerList, 2=belowName
objectiveNameStringObjective to display (empty string to clear)

Wire Encoding

FieldTypeNotes
Positionbyte0=sidebar, 1=playerList, 2=belowName
ObjectiveString

MCP References

MCPNetHandlerPlayClient.handleDisplayScoreboard()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S3DPacketDisplayScoreboard.java67 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.network.Packet;
5
import net.minecraft.network.PacketBuffer;
6
import net.minecraft.network.play.INetHandlerPlayClient;
7
import net.minecraft.scoreboard.ScoreObjective;
8
9
public class S3DPacketDisplayScoreboard implements Packet<INetHandlerPlayClient>
10
{
11
    private int position;
12
    private String scoreName;
13
14
    public S3DPacketDisplayScoreboard()
15
    {
16
    }
17
18
    public S3DPacketDisplayScoreboard(int positionIn, ScoreObjective scoreIn)
19
    {
20
        this.position = positionIn;
21
22
        if (scoreIn == null)
23
        {
24
            this.scoreName = "";
25
        }
26
        else
27
        {
28
            this.scoreName = scoreIn.getName();
29
        }
30
    }
31
32
    /**
33
     * Reads the raw packet data from the data stream.
34
     */
35
    public void readPacketData(PacketBuffer buf) throws IOException
36
    {
37
        this.position = buf.readByte();
38
        this.scoreName = buf.readStringFromBuffer(16);
39
    }
40
41
    /**
42
     * Writes the raw packet data to the data stream.
43
     */
44
    public void writePacketData(PacketBuffer buf) throws IOException
45
    {
46
        buf.writeByte(this.position);
47
        buf.writeString(this.scoreName);
48
    }
49
50
    /**
51
     * Passes this Packet on to the NetHandler for processing.
52
     */
53
    public void processPacket(INetHandlerPlayClient handler)
54
    {
55
        handler.handleDisplayScoreboard(this);
56
    }
57
58
    public int func_149371_c()
59
    {
60
        return this.position;
61
    }
62
63
    public String func_149370_d()
64
    {
65
        return this.scoreName;
66
    }
67
}

Deobfuscated MCP 1.8.9 source of S3DPacketDisplayScoreboard, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S3DPacketDisplayScoreboard.java) at build time and verified present.

Deep Dive

Role in the protocol

Binds an objective to a display slot: a position byte (0 sidebar, 1 player list, 2 below name) followed by the objective name string. An empty name clears the slot. The packet is tiny and is sent by ServerScoreboard whenever the display binding changes and during full replays on objective creation and removal. The HUD reads the bound objective each frame and renders its rows from the client scoreboard.

Vanilla handling

handleDisplayScoreboard sets or clears the objective in the given slot. The visible sidebar depends on the combination of S3B (objective definition), S3C (rows), and S3D (binding): S3D alone paints nothing, it only points the renderer at an objective.

Why clients touch it

Almost nothing across the 8 clients. Spicy's HideName imports the class (line 15) but its handler has no S3D branch, mirroring the dead S3B import. Rise 6.x registers the class in the script API. No module cancels the display binding; a cancel would freeze the previous objective in the slot, a HUD artifact none of the 8 clients bothers to produce.

Exploit surface

Nil for anti-cheat. The slot byte is not validated: values outside 0-2 are stored in the client's 19-entry slot array and render nowhere. Cancelling S3D only affects local rendering. The packet carries no timing or movement state, so no anti-cheat in the corpus measures it.

Server-Side Handling

ServerScoreboard sends S3D in setObjectiveInDisplaySlot (both the set and clear paths) and during full replays on objective creation and removal, with a null objective serialized as an empty name string. The server never reads the binding back from the client.

Protocol Analysis

Two fields: position byte then objective name string. An empty name clears the slot. The position byte indexes the client's 19-slot display array directly, so out-of-range values are stored but never rendered.

Anti-Cheat Landscape

Not monitored. S3D carries a slot index and a display string, no state an anti-cheat validates. Tampering is client-visual only.

implementation Implementation Cases

Display slot binding. In the 8-client corpus it is an import in Spicy's HideName and a script API entry in Rise 6.x; no module binds, clears, or blocks the slot.

HideName (Spicy)

Import-only reference. The module hides the player's username from rendered name surfaces, but this packet class is never branched on.

Imports S3DPacketDisplayScoreboard at the top of the file. The EventPacket pre handler only branches on S02PacketChat and S3CPacketUpdateScore; the S3D import is unused.

Source: Spicy, info/spicyclient/modules/player/HideName.java

Vanilla hook: EventPacket (pre phase).
None. No packet of this class is mutated.
Variations: None in the corpus.
NetworkAPI (script API) (Rise 6.1.30, Rise 6.2.4)

Expose the packet class to Rise's JavaScript scripting API.

S3DPacketDisplayScoreboard is listed in the clientbound Class array of NetworkAPI.java (line 104).

Source: Rise 6.1.30, com/alan/clients/script/api/NetworkAPI.java

Vanilla hook: None directly.
None. Registry only.
Variations: 6.2.4 ships the byte-identical file with the Client-release2 path prefix.
Spicy: EventPacket pre. Rise 6.x: script API table.
No client in the corpus mutates S3D. Spicy references it only as an import; Rise 6.x only in the script registry.

anticheat Anti-Cheat Checks

The display-scoreboard binding is invisible to the corpus. The only hit is Artemis HardcodeMap, which maps PacketPlayOutScoreboardDisplayObjective to the PacketPlayServerScoreboardObjectiveDisplay wrapper for the packet generator (line 59). Shard's monitor does emit and observe the display binding (WrapperPlayServerDisplayScoreboard in ScoreboardPacketBridge and ScoreboardSlotObserver), but those files were mined under the S3C corpus, so they cannot be attributed here. No anticheat validates the slot byte: the packet is client-rendering state with no timing or movement content and no serverbound counterpart.

Wiki Cross-Reference

Binds an objective name to a display slot: 0 list, 1 sidebar, 2 belowName. An empty name clears the slot.

Binding alone renders nothing; the header comes from S3B and the rows from S3C score packets.

MCP 1.8.9 S3DPacketDisplayScoreboard implements Packet dispatching to INetHandlerPlayClient.handleDisplayScoreboard; wire serde is readPacketData/writePacketData via readByte, readStringFromBuffer.

1.8.9 callers: ServerScoreboard.setObjectiveInDisplaySlot sends new S3DPacketDisplayScoreboard (line 65): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/scoreboard/ServerScoreboard.java

Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.

Vanilla Internals

Full 1.8.9 logic-class sources that send or handle this packet, stored verbatim.