0x3B S3BPacketScoreboardObjective

Creates or removes a scoreboard objective (the scoreboard itself, not individual scores).

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

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

scoreboardplayer
Comprehensive 7/8

Fields

FieldTypeDescription
nameStringObjective internal name
valueStringObjective display text (JSON, for create/update)
actionbyte0=CREATE, 1=REMOVE, 2=UPDATE
typeStringinteger or hearts (for create)

Wire Encoding

FieldTypeNotes
Objective NameString
Modebyte0=create, 1=remove, 2=update
Objective ValueStringDisplay text (Chat Component)
TypeStringinteger or hearts

MCP References

MCPNetHandlerPlayClient.handleScoreboardObjective()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S3BPacketScoreboardObjective.java86 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.IScoreObjectiveCriteria;
8
import net.minecraft.scoreboard.ScoreObjective;
9
10
public class S3BPacketScoreboardObjective implements Packet<INetHandlerPlayClient>
11
{
12
    private String objectiveName;
13
    private String objectiveValue;
14
    private IScoreObjectiveCriteria.EnumRenderType type;
15
    private int field_149342_c;
16
17
    public S3BPacketScoreboardObjective()
18
    {
19
    }
20
21
    public S3BPacketScoreboardObjective(ScoreObjective p_i45224_1_, int p_i45224_2_)
22
    {
23
        this.objectiveName = p_i45224_1_.getName();
24
        this.objectiveValue = p_i45224_1_.getDisplayName();
25
        this.type = p_i45224_1_.getCriteria().getRenderType();
26
        this.field_149342_c = p_i45224_2_;
27
    }
28
29
    /**
30
     * Reads the raw packet data from the data stream.
31
     */
32
    public void readPacketData(PacketBuffer buf) throws IOException
33
    {
34
        this.objectiveName = buf.readStringFromBuffer(16);
35
        this.field_149342_c = buf.readByte();
36
37
        if (this.field_149342_c == 0 || this.field_149342_c == 2)
38
        {
39
            this.objectiveValue = buf.readStringFromBuffer(32);
40
            this.type = IScoreObjectiveCriteria.EnumRenderType.func_178795_a(buf.readStringFromBuffer(16));
41
        }
42
    }
43
44
    /**
45
     * Writes the raw packet data to the data stream.
46
     */
47
    public void writePacketData(PacketBuffer buf) throws IOException
48
    {
49
        buf.writeString(this.objectiveName);
50
        buf.writeByte(this.field_149342_c);
51
52
        if (this.field_149342_c == 0 || this.field_149342_c == 2)
53
        {
54
            buf.writeString(this.objectiveValue);
55
            buf.writeString(this.type.func_178796_a());
56
        }
57
    }
58
59
    /**
60
     * Passes this Packet on to the NetHandler for processing.
61
     */
62
    public void processPacket(INetHandlerPlayClient handler)
63
    {
64
        handler.handleScoreboardObjective(this);
65
    }
66
67
    public String func_149339_c()
68
    {
69
        return this.objectiveName;
70
    }
71
72
    public String func_149337_d()
73
    {
74
        return this.objectiveValue;
75
    }
76
77
    public int func_149338_e()
78
    {
79
        return this.field_149342_c;
80
    }
81
82
    public IScoreObjectiveCriteria.EnumRenderType func_179817_d()
83
    {
84
        return this.type;
85
    }
86
}

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

Deep Dive

Role in the protocol

The scoreboard objective lifecycle packet. A byte action drives it: 0 creates an objective, 1 removes it, 2 updates its display name and render type. Wire fields are the objective name (16-char cap), the action byte, then conditionally for actions 0 and 2 the display name (32-char cap) and the render type string ('integer' or 'hearts'). Objectives are containers; the visible rows arrive separately via S3CPacketUpdateScore and the display slot binding via S3DPacketDisplayScoreboard. ServerScoreboard broadcasts S3B to all players on objective creation, removal, and display-name change.

Vanilla handling

NetHandlerPlayClient.handleScoreboardObjective creates a ScoreObjective with the DUMMY criteria on action 0, sets display name and render type, removes the objective on action 1, and applies display name and render type on action 2. The client scoreboard is the only consumer: the HUD sidebar renders whatever objective the S3D binding points at, populated by S3C rows. Because S3B never carries row data, cancelling it produces an objective-less board, not a blank one.

Why clients touch it

The landscape is thin across the 8 clients. Spicy's HideName imports the class but its EventPacket handler never branches on it: the import is dead weight from a name-hiding feature that actually rewrites S3C rows. Rise 6.1.30 and 6.2.4 register the class in the script API NetworkAPI table so JavaScript scripts can construct or match it. No client cancels S3B. The scoreboard-blocking modules that exist in the wider ecosystem (Gugustus Scoreboard, AntiScoreboard) sit outside this corpus, so none of the 8 reference clients carries an objective-blocker.

Exploit surface

Cancelling S3B is client-visual only. Blocking action 0 leaves rows orphaned, which renders as a sidebar with no header; blocking action 1 freezes a stale objective. The server never learns, because S3B is one-way clientbound and the server does not track which objectives a client holds. Anti-cheats in the corpus never measure scoreboard packets: they carry display strings and no timing or movement state. The only abuse value is a clean HUD, and none of the 8 clients bothers.

Server-Side Handling

ServerScoreboard emits S3B on objective creation (action 0), removal (action 1), and display name or render type updates (action 2), fanned out with sendPacketToAllPlayers. The server never reads S3B back; the packet is strictly clientbound in PLAY state, registered in EnumConnectionState alongside the rest of the scoreboard family. There is no client-to-server scoreboard acknowledgement in the protocol.

Protocol Analysis

readPacketData reads the objective name with a 16-char cap, then the action byte, then only for actions 0 and 2 the 32-char display name and the render type string, mapped through EnumRenderType.func_178795_a. writePacketData mirrors this, so a create packet missing the trailing fields desyncs the stream. Action 1 sends name plus action byte only.

Anti-Cheat Landscape

No anti-cheat in the corpus inspects S3B. It carries display strings only, no timing, position, or movement content. The only measurable effect of tampering is client-side rendering, which server-side anti-cheat cannot observe. Any module touching it is doing cosmetic work with zero detection risk.

implementation Implementation Cases

The objective lifecycle packet. Across the 8 reference clients it is only an import (Spicy HideName) and a script API registration (Rise 6.x). Nobody cancels or mutates it, because the visible rows travel in S3C and the slot binding in S3D.

HideName (Spicy)

Hide the player's real username from server-rendered name surfaces. For this packet the class is only imported; the shipped onEvent branches on S02PacketChat and S3CPacketUpdateScore, never on S3BPacketScoreboardObjective.

Imports S3BPacketScoreboardObjective at the top of the module file. The EventPacket pre handler has no S3B branch; the module's real work sits in the S3C branch, which rewrites score names to a chosen alias. The S3B import is a leftover from the same name-hiding feature.

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

Vanilla hook: EventPacket (pre phase).
None. A dead import carries no detection risk and no packet is mutated for this packet class.
Variations: None. The same file is the corpus hit for S3CPacketUpdateScore and S3DPacketDisplayScoreboard; the S3C branch is where the alias logic actually runs.
NetworkAPI (script API) (Rise 6.1.30, Rise 6.2.4)

Expose the packet class to Rise's JavaScript scripting API so scripts can construct, read, or match it from the clientbound table.

NetworkAPI.java holds a static Class array of clientbound packets that includes S3BPacketScoreboardObjective. The API maps packet ids to classes for script-side instantiation and inspection; it is an API surface, not a runtime module.

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

Vanilla hook: None directly. Script-level packet handling sits on top of this table.
None. It is a class registry, not runtime packet logic.
Variations: Rise 6.2.4 ships the byte-identical file with the Client-release2/Client/src/main/java path prefix.
Spicy uses EventPacket pre; Rise 6.x script packets run through the NetworkAPI table.
Spicy mutates packet objects inside its EventPacket pre-phase. Rise 6.x routes packet awareness through the script API rather than module code.

anticheat Anti-Cheat Checks

S3B carries scoreboard objective lifecycle state, and only Shard touches it. The monitor HUD system consumes and emits the packet family: ScoreboardSlotObserver reads S3B REMOVE actions and S3D display binds to detect when its claimed sidebar slot is displaced, and ScoreboardPacketBridge builds the S3B objectives, S3D display binds and S3C score rows that render the monitor sidebar. Everything else in the corpus is plumbing or sibling-family noise: Negativity's SCOREBOARD_OBJECTIVE constant and Artemis' four scoreboard wrapper interfaces with their PacketRepository entries register the family, intave's ScoreboardAccessor and EntityCollisionDisabler build and read PacketPlayOutScoreboardTeam (S3E), NCP's CollisionUtil uses the Bukkit scoreboard API for team-collision lookups, and BetterAnticheat's ReloadCommand hits on a comment.

ScoreboardSlotObserver (Shard) (KaelusAI-Shard)

Watches the scoreboard objective and display streams so the monitor HUD notices when its claimed sidebar slot is taken over or its objective is removed by the server or another plugin.

MONITOR-priority PacketSendEvent listener active only while the slot registry holds claims. For S3B it wraps the event as WrapperPlayServerScoreboardObjective and, when the mode is REMOVE and the objective name matches a claim, fires the claim's onSlotLost callback; for S3D it compares the display slot against the claim and fires onSlotLost with a DISPLACED reason when a foreign objective binds there. The callback is deferred through tasksAfterSend onto the main thread.

Detects: None; it is a coordination observer. It detects slot loss so the monitor view can re-assert its sidebar or fall back.

Source: KaelusAI-Shard, src/main/kotlin/ac/shard/monitor/core/ScoreboardSlotObserver.kt

Variations: ScoreboardPacketBridge is the emission half of the same monitor: it writes the objectives and display binds this observer reads.
ScoreboardPacketBridge (Shard) (KaelusAI-Shard)

Emits the scoreboard objective, display and score packets that render Shard's monitor HUD sidebar for a viewer.

createObjective sends an S3B CREATE objective (name, INTEGER render type, component title, optional fixed score format) followed by an S3D display bind to the target slot; removeObjective sends an S3B REMOVE. updateEntry and removeEntry maintain the S3C score rows, choosing reset-score packets on servers that support fancy text (1.20.3+). All packets go out through the PacketEvents player manager.

Detects: None; it is the writer side of a HUD. The bridge is the emission half of the scoreboard observer's coordination loop.

Source: KaelusAI-Shard, src/main/kotlin/ac/shard/monitor/core/ScoreboardPacketBridge.kt

Variations: No other anticheat emits or reads S3B; the rest of the corpus registers the family (Negativity, Artemis) or touches the sibling S3E team packet (intave).

Wiki Cross-Reference

Action byte drives it: 0 create objective, 1 remove, 2 update display. Name capped at 16 chars.

Create/update also carry display text (32-char cap) and render type integer or hearts; remove sends name plus action byte only.

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

1.8.9 callers: ServerScoreboard.onObjectiveDisplayNameChanged sends new S3BPacketScoreboardObjective (line 132): 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.