0x3C S3CPacketUpdateScore

Updates a single scoreboard entry (add, remove, or change score value).

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

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

scoreboardscore
Comprehensive 7/8

Fields

FieldTypeDescription
nameStringScore name (player name or team)
objectiveNameStringObjective name
valueintScore value
actionVarInt Enum0=create/update, 1=remove

Wire Encoding

FieldTypeNotes
NameString
ObjectiveString
Valueint0 for remove
ActionVarInt0=create, 1=remove

MCP References

MCPNetHandlerPlayClient.handleUpdateScore()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S3CPacketUpdateScore.java108 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.Score;
8
import net.minecraft.scoreboard.ScoreObjective;
9
10
public class S3CPacketUpdateScore implements Packet<INetHandlerPlayClient>
11
{
12
    private String name = "";
13
    private String objective = "";
14
    private int value;
15
    private S3CPacketUpdateScore.Action action;
16
17
    public S3CPacketUpdateScore()
18
    {
19
    }
20
21
    public S3CPacketUpdateScore(Score scoreIn)
22
    {
23
        this.name = scoreIn.getPlayerName();
24
        this.objective = scoreIn.getObjective().getName();
25
        this.value = scoreIn.getScorePoints();
26
        this.action = S3CPacketUpdateScore.Action.CHANGE;
27
    }
28
29
    public S3CPacketUpdateScore(String nameIn)
30
    {
31
        this.name = nameIn;
32
        this.objective = "";
33
        this.value = 0;
34
        this.action = S3CPacketUpdateScore.Action.REMOVE;
35
    }
36
37
    public S3CPacketUpdateScore(String nameIn, ScoreObjective objectiveIn)
38
    {
39
        this.name = nameIn;
40
        this.objective = objectiveIn.getName();
41
        this.value = 0;
42
        this.action = S3CPacketUpdateScore.Action.REMOVE;
43
    }
44
45
    /**
46
     * Reads the raw packet data from the data stream.
47
     */
48
    public void readPacketData(PacketBuffer buf) throws IOException
49
    {
50
        this.name = buf.readStringFromBuffer(40);
51
        this.action = (S3CPacketUpdateScore.Action)buf.readEnumValue(S3CPacketUpdateScore.Action.class);
52
        this.objective = buf.readStringFromBuffer(16);
53
54
        if (this.action != S3CPacketUpdateScore.Action.REMOVE)
55
        {
56
            this.value = buf.readVarIntFromBuffer();
57
        }
58
    }
59
60
    /**
61
     * Writes the raw packet data to the data stream.
62
     */
63
    public void writePacketData(PacketBuffer buf) throws IOException
64
    {
65
        buf.writeString(this.name);
66
        buf.writeEnumValue(this.action);
67
        buf.writeString(this.objective);
68
69
        if (this.action != S3CPacketUpdateScore.Action.REMOVE)
70
        {
71
            buf.writeVarIntToBuffer(this.value);
72
        }
73
    }
74
75
    /**
76
     * Passes this Packet on to the NetHandler for processing.
77
     */
78
    public void processPacket(INetHandlerPlayClient handler)
79
    {
80
        handler.handleUpdateScore(this);
81
    }
82
83
    public String getPlayerName()
84
    {
85
        return this.name;
86
    }
87
88
    public String getObjectiveName()
89
    {
90
        return this.objective;
91
    }
92
93
    public int getScoreValue()
94
    {
95
        return this.value;
96
    }
97
98
    public S3CPacketUpdateScore.Action getScoreAction()
99
    {
100
        return this.action;
101
    }
102
103
    public static enum Action
104
    {
105
        CHANGE,
106
        REMOVE;
107
    }
108
}

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

Deep Dive

Role in the protocol

Single-row scoreboard mutation. Fields are the score name (40-char cap), an action enum (CHANGE or REMOVE), the objective name (16-char cap), and for CHANGE a VarInt value. The server emits one S3C per row update: value change, row removal, removal scoped to one objective, and full replay during objective creation and on join. It is the most frequently emitted scoreboard packet: a 15-row sidebar refresh is 15 packets.

Vanilla handling

handleUpdateScore resolves the objective by name, then either sets the score points (CHANGE) or removes the row (REMOVE). A REMOVE with an empty objective name removes the row from every objective. The client scoreboard then re-renders whichever slot binds the objective. The value field is only present for CHANGE, so the read path is action-dependent.

Why clients touch it

Two Spicy files rewrite this packet, both for name visibility. HideName replaces the session username with a chosen alias in both the objective name and the row name fields, so sidebar kill feeds and stats boards stop showing the real name. Account.java does the inverse for alt accounts: it appends the real account name in green so the user can tell which identity is live. Both mutate the decoded packet inside EventPacket pre, before the vanilla handler runs. Rise 6.x only registers the class in the script API.

Exploit surface

Name rewriting here is invisible to the server: S3C is clientbound, and the rewrite happens after decode and before the client scoreboard consumes it. Anti-cheats never see the mutation. HideName stays consistent by applying the same alias to chat (S02PacketChat) and scoreboard rows, so the client-side story matches everywhere. There is no server-side state to desync because the scoreboard lives only on the client.

Server-Side Handling

ServerScoreboard emits S3C on score value changes, row removal, and removal scoped to one objective, plus full replays during objective creation and join. All sends go through sendPacketToAllPlayers. The packet is clientbound only; the server never validates or receives score state back from the client.

Protocol Analysis

readPacketData order: score name (40-char cap), action enum via readEnumValue, objective name (16-char cap), then the VarInt value only when the action is CHANGE. REMOVE rows omit the value, keeping the packet short. The enum has exactly two members, CHANGE and REMOVE; there is no separate add action.

Anti-Cheat Landscape

Nothing flags S3C abuse in the corpus. It carries display strings and a display integer, no timing or movement content. Rewriting name fields is purely cosmetic client-side work that server-side anti-cheat cannot detect.

implementation Implementation Cases

The only scoreboard packet the 8 clients actually mutate. Spicy's HideName swaps the player's username for an alias in score rows; Spicy's Account.java appends the real alt name in green. Both rewrite the decoded packet before the vanilla handler, which the server cannot see.

HideName (Spicy)

Stop the player's real username from appearing in scoreboard rows: sidebar stats, kill feeds, and per-player objectives.

In EventPacket pre, when the packet is S3CPacketUpdateScore, it strips the invisible joiner character (׼) from both name fields and checks whether the objective name or the score name contains the session username. On a match it replaces the username with the selected alias via setObjective and setName. The same handler rewrites S02PacketChat for chat surfaces.

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

Vanilla hook: EventPacket (pre phase).
None. Pure client-side string rewrite after decode; the server never sees the mutation.
Variations: Account.java reuses the same rewrite pattern but appends the real account name in green instead of hiding it.
Account (alt name reveal) (Spicy)

For alt accounts, append the real account name to the player's own scoreboard rows so the user can tell which identity is live.

Account.onPacket, reached from the module event bus when SpicyClient.account.loggedIn is true, handles S3CPacketUpdateScore by rewriting the objective name and row name, replacing the session username with 'username §f(§a realname §f)'. The same treatment applies to S02PacketChat. It also polls the SpicyClient.info API per player to map alt names to real accounts.

Source: Spicy, info/spicyclient/files/Account.java

Vanilla hook: EventPacket (pre phase), routed through Account.onEvent.
None. The rewrite is client-side after decode; the server only ever sent the alt username.
Variations: HideName performs the same two-field rewrite with a fake name; Account.java uses the real account name from the login session.
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.

S3CPacketUpdateScore is listed in the clientbound Class array of NetworkAPI.java (line 103). Scripts use the table to instantiate or filter the packet.

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 on the client event bus. Rise 6.x: script API table.
Spicy mutates the packet object in place (setObjective/setName). Rise 6.x has no module code for this packet, only the script registry.

anticheat Anti-Cheat Checks

S3C is the single-row scoreboard mutation, and no anticheat flags it. The only live consumer is Shard's monitor, which renders its status sidebar by emitting the scoreboard family itself, including the S3C row updates. The rest of the corpus is registrations (Negativity PacketType SCOREBOARD_SCORE, Artemis PacketRepository SERVER_PLAY+57 with the PacketPlayServerScoreboardScore wrapper and HardcodeMap) and keyword noise: intave's hits handle the sibling S3E team packet and matched on the Scoreboard search term, NCP's CollisionUtil reads the Bukkit scoreboard API for team collision predicates, and amnoah's ReloadCommand mentions BetterScoreboard in a comment.

Monitor sidebar bridge (Shard) (KaelusAI-Shard)

The anticheat's own scoreboard HUD: Shard renders its monitor sidebar by sending the client the scoreboard packets itself, including the S3C row updates.

ScoreboardPacketBridge constructs and sends the full scoreboard family to a viewer: WrapperPlayServerScoreboardObjective for the objective (adventure-component title on 1.20.3+ with a legacy fallback), WrapperPlayServerDisplayScoreboard for the slot binding, and WrapperPlayServerUpdateScore for each row, with CREATE_OR_UPDATE_ITEM carrying the score value and REMOVE_ITEM handling deletions on servers below 1.20.3 (WrapperPlayServerResetScore replaces the remove path on 1.20.3+). updateEntry is the S3C producer: one packet per sidebar row per refresh.

Detects: Nothing cheat-related. It is the anticheat as scoreboard producer; keeping the monitor readable is a HUD concern, not a flag.

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

Variations: The rest of the corpus does not read S3C. Negativity and Artemis only register the packet class (SCOREBOARD_SCORE constant, SERVER_PLAY+57 repository entry, wrapper interface); intave's EntityCollisionDisabler and ScoreboardAccessor handle the sibling S3E team packet, matched here only by the Scoreboard keyword.
TextComponentScore emulator render (Artemis) (artemisac-artemis-minecraft-anticheat)

Render chat score components inside the world emulator by substituting the score value for a named objective and entry.

TextComponentScore is the moderna text-component subclass behind the score placeholder. Its resolve path looks up the objective on the emulated world's Bukkit scoreboard and writes score.getScorePoints() into the value (lines 61-77), and getUnformattedComponentText returns that value. The scoreboard lookup is inside a resolve() method that is commented out in the cloned source, so the class never queries the scoreboard at runtime. The corpus hit is the Scoreboard keyword, not the packet: Artemis reads score state through the server API and never parses S3C.

Detects: Nothing. Score text in the emulated chat pipeline only; the renderer substitutes what the server scoreboard already holds, and in the clone even that path is disabled.

Source: artemisac-artemis-minecraft-anticheat, ac.artemis.core/src/main/java/ac/artemis/core/v4/emulator/moderna/text/TextComponentScore.java

Variations: None. Artemis's PacketPlayServerScoreboardScore, PacketPlayServerScoreboardObjective, PacketPlayServerScoreboardObjectiveDisplay and PacketPlayServerScoreboardTeam interfaces are repository wrappers only.

Wiki Cross-Reference

The score holder name is an arbitrary string rather than a real player name, so fake-player entries and raw UUID strings are legal row keys.

MCP 1.8.9 S3CPacketUpdateScore implements Packet dispatching to INetHandlerPlayClient.handleUpdateScore; wire serde is readPacketData/writePacketData via readEnumValue, readStringFromBuffer, readVarIntFromBuffer.

1.8.9 callers: ServerScoreboard.func_96536_a sends new S3CPacketUpdateScore (line 33): 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.

Module Analyses Using S3CPacketUpdateScore

Full source walkthroughs of the modules and anti-cheats that use this packet.