0x35 S35PacketUpdateTileEntity

Updates NBT data for a tile entity (sign, skull, beacon, command block, etc.).

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

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

worldblocknbt
Complete 5/8

Fields

FieldTypeDescription
posBlockPosTile entity position
actionbyteUpdate action type
nbtDataNBTTagCompoundTile entity NBT data

Wire Encoding

FieldTypeNotes
PositionBlockPos (long)
Actionunsigned byte1=update sign, 2=update skull, 3=update beacon, 4=update skull+base, 7=update endGateway
NBT DataNBT Tag

MCP References

MCPNetHandlerPlayClient.handleUpdateTileEntity()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S35PacketUpdateTileEntity.java71 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.nbt.NBTTagCompound;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayClient;
8
import net.minecraft.util.BlockPos;
9
10
public class S35PacketUpdateTileEntity implements Packet<INetHandlerPlayClient>
11
{
12
    private BlockPos blockPos;
13
14
    /** Used only for vanilla tile entities */
15
    private int metadata;
16
    private NBTTagCompound nbt;
17
18
    public S35PacketUpdateTileEntity()
19
    {
20
    }
21
22
    public S35PacketUpdateTileEntity(BlockPos blockPosIn, int metadataIn, NBTTagCompound nbtIn)
23
    {
24
        this.blockPos = blockPosIn;
25
        this.metadata = metadataIn;
26
        this.nbt = nbtIn;
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.blockPos = buf.readBlockPos();
35
        this.metadata = buf.readUnsignedByte();
36
        this.nbt = buf.readNBTTagCompoundFromBuffer();
37
    }
38
39
    /**
40
     * Writes the raw packet data to the data stream.
41
     */
42
    public void writePacketData(PacketBuffer buf) throws IOException
43
    {
44
        buf.writeBlockPos(this.blockPos);
45
        buf.writeByte((byte)this.metadata);
46
        buf.writeNBTTagCompoundToBuffer(this.nbt);
47
    }
48
49
    /**
50
     * Passes this Packet on to the NetHandler for processing.
51
     */
52
    public void processPacket(INetHandlerPlayClient handler)
53
    {
54
        handler.handleUpdateTileEntity(this);
55
    }
56
57
    public BlockPos getPos()
58
    {
59
        return this.blockPos;
60
    }
61
62
    public int getTileEntityType()
63
    {
64
        return this.metadata;
65
    }
66
67
    public NBTTagCompound getNbtCompound()
68
    {
69
        return this.nbt;
70
    }
71
}

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

Deep Dive

Role in the protocol

Server-pushed NBT updates for tile entities: a BlockPos, a one-byte action type, and an NBT tag. The action discriminates the tile entity class (1 mob spawner, 2 command block, 3 beacon, 4 skull, 5 flower pot, 6 banner), and the client applies the tag only when the loaded tile entity at that position matches the action. It is the per-block complement to the block change packets: S22 and S23 carry block ids and metadata, while S35 carries the full compound for the entity attached to a block. Sign line edits, skull owner changes, beacon effect retunes and spawner entity swaps all arrive here.

Vanilla handling

NetHandlerPlayClient.handleUpdateTileEntity dispatches on the main thread (PacketThreadUtil), checks isBlockLoaded(pos), fetches the tile entity, and calls readFromNBT only when the action matches the tile entity class; an unloaded position or a mismatched type is silently dropped, so a forged packet cannot create tile entities out of thin air. The producers are the tile entities themselves: TileEntityMobSpawner emits action 1, TileEntityCommandBlock 2, TileEntityBeacon 3, TileEntitySkull 4, TileEntityFlowerPot 5, TileEntityBanner 6.

Why clients touch it

In this corpus they do not. The mined grep across all 8 clients returns only the vanilla handler, the EnumConnectionState registration, the INetHandlerPlayClient declaration and the tile entity producers; the only non-vanilla hit is Rise 6.1.30 and 6.2.4 NetworkAPI.java registering S35PacketUpdateTileEntity.class for the script engine. There is no SignESP, chest tracker or beacon ESP module referencing S35 in Memeware, Nekoware, Rise, Sigma, Spicy or Tenacity. The metadata drafts for Tenacity 6.0 ChestESP and SpawnerFinder fail corpus verification and are deliberately not listed.

Exploit surface

Because the handler requires a loaded chunk and a matching tile entity class, the packet is a poor injection surface and no anti-cheat measures it. The realistic module use would be read-only: sniffing sign text players type, or tracking spawner and beacon changes for ESP. Their absence in these clients is a corpus fact rather than a protocol limitation; nothing about the wire format stops a client from observing the stream.

Server-Side Handling

The server never validates the payload beyond construction: each tile entity builds its own packet from its NBT via getUpdatePacket, and the server sends it to the relevant players. The readFromNBT gate on the client is the only enforcement point. The action byte is read as unsigned, so the vanilla set of 1-6 is a convention rather than a wire constraint; modded servers reuse the channel for custom tile entities.

Protocol Analysis

Wire layout: BlockPos (a packed long, x << 38 | z << 12 | y in the 1.8.9 encoding), an unsigned byte action, then a length-prefixed NBT compound. The NBT payload dominates the size: a banner pattern list or a long command block command can push the packet past the server compression threshold. Frequent beacon or spawner updates are a known bandwidth cost on chunk-heavy servers.

Anti-Cheat Landscape

No anti-cheat watches S35; it is server-trusted data flowing clientbound. The only abuse vector is a malicious server shipping crafted NBT to crash or lag clients, which is a server-side concern outside module scope. Clients gain nothing by spoofing it because the direction is clientbound and the handler discards mismatches, so the packet contributes nothing to detection or evasion.

implementation Implementation Cases

The tile entity state channel: the server pushes NBT diffs for signs, spawners, command blocks, beacons, skulls, flower pots and banners, and the client applies them only when the loaded tile entity matches the action byte. None of the 8 clients ships a module that reads or cancels this packet; the corpus holds only vanilla handler and producer hits plus Rise 6.x script API registration.

The natural hook surface is PacketReceiveEvent, but no module in the 8-client corpus registers one for S35; Rise 6.x additionally exposes the class through its script NetworkAPI whitelist.
Rise 6.1.30 and 6.2.4 let scripts match S35 through the script API packet registry; the other six clients carry only vanilla references.

anticheat Anti-Cheat Checks

No anti-cheat consumes S35. Every corpus hit matches the TileEntity keyword rather than the packet: Grim's chunk readers and CompensatedWorld pass TileEntity arrays embedded in map-chunk data, NCP's BlockCache implementations call world.getTileEntity to read server-side block state, Kauri's BlockUpdateHandler forwards the same chunk-embedded array, Photon's WorldDownloaderSentinel writes a disable-tile-entity-saving option into the WorldDownloader channel, and intave's EntityTypeDataRegistry is a misnamed entity-type hitbox table. The only direct packet references are plumbing: Negativity's TILE_ENTITY_DATA constant, and Artemis' PacketRepository entry with the PacketPlayServerTileEntityData wrapper interface. Tile-entity policing runs on the commit side of sign edits instead: NCP AutoSign and Intave ItemCrashTracker.checkSign watch C12PacketUpdateSign, because S35 is server-trusted NBT the client applies only when the loaded tile entity matches the action byte.

Wiki Cross-Reference

BlockPos, unsigned-byte action, full NBT compound. 1.8.9 actions: 1 spawner, 2 command block, 3 beacon, 4 skull, 5 flower pot, 6 banner.

Client applies NBT only if a matching tile entity is loaded at the pos; mismatches and unloaded positions are silently dropped.

MCP 1.8.9 S35PacketUpdateTileEntity implements Packet dispatching to INetHandlerPlayClient.handleUpdateTileEntity; wire serde is readPacketData/writePacketData via readBlockPos, readNBTTagCompoundFromBuffer, readUnsignedByte.

1.8.9 callers: TileEntityBanner.getDescriptionPacket sends new S35PacketUpdateTileEntity (line 98) +5 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/tileentity/TileEntityBanner.java

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