0x33 S33PacketUpdateSign

Updates a sign's text for all nearby players.

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

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

worldblocksign
Complete 5/8

Fields

FieldTypeDescription
posBlockPosSign position
linesIChatComponent[4]4 lines of text

Wire Encoding

FieldTypeNotes
Block PositionBlockPos (long)
Line 1Chat Component (JSON)
Line 2Chat Component (JSON)
Line 3Chat Component (JSON)
Line 4Chat Component (JSON)

MCP References

MCPNetHandlerPlayClient.handleUpdateSign()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S33PacketUpdateSign.java72 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.util.BlockPos;
8
import net.minecraft.util.IChatComponent;
9
import net.minecraft.world.World;
10
11
public class S33PacketUpdateSign implements Packet<INetHandlerPlayClient>
12
{
13
    private World world;
14
    private BlockPos blockPos;
15
    private IChatComponent[] lines;
16
17
    public S33PacketUpdateSign()
18
    {
19
    }
20
21
    public S33PacketUpdateSign(World worldIn, BlockPos blockPosIn, IChatComponent[] linesIn)
22
    {
23
        this.world = worldIn;
24
        this.blockPos = blockPosIn;
25
        this.lines = new IChatComponent[] {linesIn[0], linesIn[1], linesIn[2], linesIn[3]};
26
    }
27
28
    /**
29
     * Reads the raw packet data from the data stream.
30
     */
31
    public void readPacketData(PacketBuffer buf) throws IOException
32
    {
33
        this.blockPos = buf.readBlockPos();
34
        this.lines = new IChatComponent[4];
35
36
        for (int i = 0; i < 4; ++i)
37
        {
38
            this.lines[i] = buf.readChatComponent();
39
        }
40
    }
41
42
    /**
43
     * Writes the raw packet data to the data stream.
44
     */
45
    public void writePacketData(PacketBuffer buf) throws IOException
46
    {
47
        buf.writeBlockPos(this.blockPos);
48
49
        for (int i = 0; i < 4; ++i)
50
        {
51
            buf.writeChatComponent(this.lines[i]);
52
        }
53
    }
54
55
    /**
56
     * Passes this Packet on to the NetHandler for processing.
57
     */
58
    public void processPacket(INetHandlerPlayClient handler)
59
    {
60
        handler.handleUpdateSign(this);
61
    }
62
63
    public BlockPos getPos()
64
    {
65
        return this.blockPos;
66
    }
67
68
    public IChatComponent[] getLines()
69
    {
70
        return this.lines;
71
    }
72
}

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

Deep Dive

Role in the protocol

S33PacketUpdateSign carries one sign's text: a BlockPos (packed long) plus four chat components. The server sends it to every player tracking the chunk when a sign is placed or edited, including the editing player, so the client replaces the tile entity's lines and re-renders. The content is formatted text, not raw strings, so formatting codes and component metadata survive the trip.

Vanilla handling

NetHandlerPlayClient.handleUpdateSign looks up the tile entity at the packet position, copies the four lines into TileEntitySign.signText, and if the local player is editing that sign, overwrites the GUI's text fields with the server's canonical text. TileEntitySign.func_145912_a (line 116 in the bundled sources) builds the packet from the raw lines. The client trusts the content completely; there is no length or content validation beyond the component format.

Why clients touch it

None of the 8 clients has a module for this packet. The only non-vanilla hits are the Rise 6.x NetworkAPI script registration table (both 6.1.30 and 6.2.4) and the vanilla handler files. NameProtect-style modules, which would rewrite sign text to hide player names, do not appear in any of the 8 corpora. The packet has no movement, combat or inventory value, so cheat clients have no reason to intercept it.

Exploit surface

The content is untrusted server data rendered directly into the world, so the only theoretical abuse is component injection: a malicious server can embed hover and click events in sign lines. The client renders them, and none of the 8 clients sanitizes components. That is a server-side attack vector, not a cheat surface. No anti-cheat measures S33 because it carries no gameplay-trust signal.

Server-Side Handling

TileEntitySign.func_145912_a (line 116) constructs S33(world, pos, lines) from signText, and the server broadcasts it to every player tracking the chunk. NetHandlerPlayClient.handleUpdateSign finds the tile entity, writes the four components into signText, and if the player is editing that sign, pushes the canonical text into the editor GUI. No validation of line content or length beyond the chat component format.

Protocol Analysis

Wire: BlockPos packed as a long (x 26 bits, y 12 bits, z 26 bits), then four IChatComponent JSON strings, each VarInt length-prefixed UTF-8. Lines are chat components, so formatting codes survive. PLAY state only. The placing player receives the packet back, which is how the editor confirms the server accepted the write.

Anti-Cheat Landscape

Nothing to flag: S33 is authoritative world data sent once per sign change, and no movement, combat or inventory check reads it. The only conceivable issue is rendering-injection via crafted components from a malicious server, a client-side rendering decision no anti-cheat polices.

implementation Implementation Cases

Zero module hits in the 8 clients. Sign text is display-only world data with no cheat value, and NameProtect-style rewriting is absent from all 8 corpora. The only non-vanilla reference is the Rise 6.x script API registration table.

No module hooks exist in the corpus. The packet reaches tile entities exclusively through the vanilla handler.
Rise 6.1.30 and 6.2.4 register S33 in NetworkAPI so scripts can intercept it; every other client in the corpus reaches it only through the vanilla NetHandlerPlayClient handler.

anticheat Anti-Cheat Checks

No anticheat in the corpus runs a check on the sign-update packet. The only real server-side reference is Artemis, which registers PacketPlayServerUpdateSign at SERVER_PLAY + 82; the rest of the mined corpus is keyword noise from the search term Sign: client-side sign-editing handling (C12PacketUpdateSign in Grim ExploitB and Vrekt-Arc PayloadFrequency, MC|BSign payload checks in Truthful CrasherA and Grim, Intave ItemCrashTracker.checkSign on Client.UPDATE_SIGN), sign block physics and placement in NoCheatPlus AutoSign, Kauri Materials and ThotPatrol UtilBlock, and unrelated JVM method-signature code in Intave's bundled ASM library. Sign text is authoritative world data the client renders, so server-side anticheats have nothing to measure.

Wiki Cross-Reference

BlockPos packed long plus 4 sign lines as JSON chat components. Server broadcasts it to chunk trackers when a sign is placed or edited.

Client writes the lines into TileEntitySign and re-renders; the placing player gets it back as the edit confirmation.

MCP 1.8.9 S33PacketUpdateSign implements Packet dispatching to INetHandlerPlayClient.handleUpdateSign; wire serde is readPacketData/writePacketData via readBlockPos, readChatComponent.

1.8.9 callers: TileEntitySign.getDescriptionPacket sends new S33PacketUpdateSign (line 128): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/tileentity/TileEntitySign.java

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