0x23 S23PacketBlockChange

Updates a single block in the world: position and new block state (combined ID+metadata).

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

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

worldblock
Comprehensive 7/8

Fields

FieldTypeDescription
positionBlockPosBlock position
blockStateIBlockStateNew block state (blockId | (metadata << 12))

Wire Encoding

FieldTypeNotes
PositionBlockPos (long)Encoded as long
Block ID + MetaVarIntBlock ID | (metadata << 12)

MCP References

MCPNetHandlerPlayClient.handleBlockChange()

Handler Interface

HNDINetHandlerPlayClient

Vanilla Source

S23PacketBlockChange.java62 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import net.minecraft.block.Block;
5
import net.minecraft.block.state.IBlockState;
6
import net.minecraft.network.Packet;
7
import net.minecraft.network.PacketBuffer;
8
import net.minecraft.network.play.INetHandlerPlayClient;
9
import net.minecraft.util.BlockPos;
10
import net.minecraft.world.World;
11
12
public class S23PacketBlockChange implements Packet<INetHandlerPlayClient>
13
{
14
    private BlockPos blockPosition;
15
    private IBlockState blockState;
16
17
    public S23PacketBlockChange()
18
    {
19
    }
20
21
    public S23PacketBlockChange(World worldIn, BlockPos blockPositionIn)
22
    {
23
        this.blockPosition = blockPositionIn;
24
        this.blockState = worldIn.getBlockState(blockPositionIn);
25
    }
26
27
    /**
28
     * Reads the raw packet data from the data stream.
29
     */
30
    public void readPacketData(PacketBuffer buf) throws IOException
31
    {
32
        this.blockPosition = buf.readBlockPos();
33
        this.blockState = (IBlockState)Block.BLOCK_STATE_IDS.getByValue(buf.readVarIntFromBuffer());
34
    }
35
36
    /**
37
     * Writes the raw packet data to the data stream.
38
     */
39
    public void writePacketData(PacketBuffer buf) throws IOException
40
    {
41
        buf.writeBlockPos(this.blockPosition);
42
        buf.writeVarIntToBuffer(Block.BLOCK_STATE_IDS.get(this.blockState));
43
    }
44
45
    /**
46
     * Passes this Packet on to the NetHandler for processing.
47
     */
48
    public void processPacket(INetHandlerPlayClient handler)
49
    {
50
        handler.handleBlockChange(this);
51
    }
52
53
    public IBlockState getBlockState()
54
    {
55
        return this.blockState;
56
    }
57
58
    public BlockPos getBlockPosition()
59
    {
60
        return this.blockPosition;
61
    }
62
}

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

Deep Dive

Role in the protocol

S23 is the server's single-block state correction. The server sends it whenever one block in a loaded chunk changes and the change is cheap to express, with the alternative S21PacketChunkData / S22PacketMultiBlockChange reserved for bulk edits. The block state is encoded as a VarInt into the Block.BLOCK_STATE_IDS registry, not as the old blockId | (meta << 12) split; every block in 1.8.9 has a unique registry ID. NetHandlerPlayServer pushes it from the block-breaking path (line 481), the block-placement path (line 535), ItemInWorldManager.tryHarvestBlock (line 254) and PlayerManager's chunk watcher broadcast (line 436).

Vanilla handling

NetHandlerPlayClient.handleBlockChange calls PacketThreadUtil.func_180031_a for main-thread dispatch, then clientWorldController.func_180503_b(pos, state), which is WorldClient.setBlockState: it replaces the local block, updates the lightmap, and re-renders the region. That is the entire effect; there is no server round trip. Because the handler writes straight into the world, any module that reads world state after the event bus gets the correction for free, which is why so few clients intercept S23 directly.

Why clients touch it

Only one module in the 8-client corpus references S23PacketBlockChange: Rise 6.2.4's WatchdogJumpSprint, a Scaffold sprint mode. It treats every S23 as proof the server accepted a placed block: the PacketReceiveEvent handler sets start3 = true and increments a block counter, and the pre-motion handler then uses start3 to fire a spoofed C08PacketPlayerBlockPlacement with an ice ItemStack against the player's own position (line 116), which is the Watchdog anti-cheat block-placement trigger used to keep the player's on-ground state consistent while sprint-jumping. The counter also feeds previousBlockValue / previousTick logic that paces how often the exploit packet is sent.

Exploit surface

S23 is clientbound and carries no player identity, so there is nothing to spoof server-side; the abuse is entirely on the receiving end. Ghost-block clients that locally predict block state must reconcile against S23 when the server disagrees, and scaffold / nuker modules can use the arrival timing of S23 as a cheap ping-free ack. Anti-cheats watch the reverse direction: they validate that a C08PacketPlayerBlockPlacement is followed by a matching S23 echo and check the placed block against the client's claimed reach, which is exactly the surface WatchdogJumpSprint's ice-placement trick plays on.

Server-Side Handling

NetHandlerPlayServer sends S23 on block break (processPlayerDigging, ~line 481), on placement and its neighbor update (~line 535), plus a second packet for the offset block when the placed block has a block-on-use neighbor. ItemInWorldManager sends it after a successful harvest, and PlayerManager.sendToAllPlayersWatchingChunk broadcasts to every player with the chunk loaded. In 1.8.9 there is no server-side validation of the client's C08 beyond reach and interval checks in the digging/placement handlers.

Protocol Analysis

Wire format: BlockPos as a packed long (readBlockPos) followed by a VarInt block state registry ID. The state is resolved at construction time from the world, so the server always sends what it believes is current, and a stale S23 can overwrite a newer client-side prediction. In PLAY state only. Frequency is bounded by player block interactions, which is what makes it a usable ack channel.

Anti-Cheat Landscape

S23 itself is never flagged; it is server-originated truth. Anti-cheats use it to detect ghost blocks and reach abuse: a placed block whose S23 echo position lies outside the client's valid reach, or a C08 that gets no echo, feeds reach and scaffold checks. Clients that spoof block placement need the echo to keep their internal state honest, and the timing between C08 and S23 is a latency signal that modules like WatchdogJumpSprint fold into their pacing.

implementation Implementation Cases

The server's authoritative one-block correction. In this corpus it is used by exactly one module, Rise 6.2.4's WatchdogJumpSprint, which reads S23 arrivals as placement acknowledgements to pace a Watchdog-targeted ice-block C08 exploit. Everything else in the 8 clients lets the vanilla handler write the state into WorldClient and reads the world afterwards.

WatchdogJumpSprint (Rise 6.2.4)

Use S23 block-change arrivals as placement acks to pace a Watchdog-targeted ice-block placement exploit inside Scaffold.

A PacketReceiveEvent listener checks for S23PacketBlockChange, sets start3 = true and increments the block counter. The PreMotionEvent handler then uses start3 to send a spoofed C08PacketPlayerBlockPlacement aimed at the player's own position with an ice ItemStack and randomized hit vectors, one-shotting start3 per ack so the exploit packet only fires after the server confirms a placement.

Source: Rise 6.2.4, Client-release2/Client/src/main/java/com/alan/clients/module/impl/player/scaffold/sprint/WatchdogJumpSprint.java

Vanilla hook: PacketReceiveEvent (S23PacketBlockChange instanceof check).
Reading S23 is passive and undetectable; the flag surface is the ice C08 itself, which is why the module only sends it after a genuine server ack and randomizes hitX/hitZ per send.
Variations: Rise 6.1.30's WatchdogJumpSprint does not reference S23 (only the script NetworkAPI does); the 6.2.4 variant is the only module in the corpus touching this packet.
PacketReceiveEvent on every client; the vanilla handler is the only consumer for most clients.
All 8 clients ship the vanilla NetHandlerPlayClient.handleBlockChange untouched. The only divergence is Rise 6.2.4's scaffold mode intercepting the packet on its own event bus; Rise 6.x also exposes S23 to its scripting API (NetworkAPI.java).

anticheat Anti-Cheat Checks

S23 changes a single block and tells the client about it; it is the smallest world mutation in the protocol. For server-side anticheats it is still a compensated-world event: the cache must apply the change before checks judge the player, and scaffolding checks use the client-facing block state to validate placement supports. The corpus for S23 is the block-change pipeline again (Grim AirLiquidPlace and CompensatedWorld, NCP BlockChangeTracker and BlockChangeListener, Intave SingleBlockChangeReader, Kauri BlockUpdateHandler, FlopAC WrappedOutBlockChange), with the same world-cache pattern as S22 but per block.

AirLiquidPlace (Grim) (GrimAnticheat-Grim)

Flag block placements against air or liquid supports, which scaffolding and tower cheats produce.

BlockPlaceListener reads the placement position and the compensated world's block state at the support location; it first checks blockHistory for recent START_DIGGING or netty-sync modifications at that position so instant-breaking plus placing in the same tick does not false. If the support is air or a no-place liquid, the check flags and resyncs the placed block. The file's comment documents years of false-positive archaeology around dig-then-place ordering.

Detects: Scaffold and tower modules that place against supports the client should not see as solid.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/checks/impl/scaffolding/AirLiquidPlace.java

Variations: NCP blockplace fastplace and Grim's other scaffolding checks handle adjacent placement abuse; Kauri BlockD applies the same support validation against its replicated world.
SingleBlockChangeReader (Intave) (intave-intave)

Decode the S23 packet into a single block position and block data for the block update tracker.

AbstractPacketReader implementing BlockChanges: reads the BlockPosition field through a thread-local converter and returns the packet's block data as single-element lists, which the BlockUpdateTracker applies to the block cache and acknowledges.

Detects: Feeds the block cache for Intave's interaction ray-trace and physics checks; registered for BLOCK_CHANGE and BLOCK_BREAK in PacketReaders.

Source: intave-intave, src/main/java/de/jpx3/intave/packet/reader/SingleBlockChangeReader.java

Variations: FlopAC WrappedOutBlockChange wraps the same packet for the reach processor; Hydro WorldTracker handleBlockChange and Kauri runUpdate(WrapperPlayServerBlockChange) are the equivalent apply paths.
WrappedOutBlockChange (FlopAC) (JTXOfficial-FlopAC)

Reflection wrapper for the S23 packet so FlopAC's processors can read block positions and data across 1.7-1.12 protocol versions.

Resolves the NMS PacketPlayOutBlockChange class and its fields: legacy 1.7.10 x/y/z ints plus block and data fields, or the 1.8+ BlockPosition and IBlockData fields. process() populates a BaseBlockPosition from whichever layout the server version uses, and the constructor can build the packet from a Bukkit Block for server-side resync.

Detects: Feeds the compensated world and reach processor; a thin protocol layer rather than a flagging check.

Source: JTXOfficial-FlopAC, src/main/java/me/jtx/flopac/tinyprotocol/packet/out/WrappedOutBlockChange.java

Variations: Intave SingleBlockChangeReader and Kauri runUpdate(WrapperPlayServerBlockChange) do the same decode on different packet libraries.
BlockChangeListener (NoCheatPlus) (Updated-NoCheatPlus-NoCheatPlus)

Ingest server block changes, including S23 single-block updates, into NCP's compensated BlockChangeTracker.

Registers Bukkit listeners for piston, redstone, entity block change, block form and player interact events and converts each into tracker.addBlockChange entries with tick and direction; the tracker's validity-interval model lets SurvivalFly, Passable and Visible ask whether a block existed at move time rather than now.

Detects: Feeds ground and passable decisions; the same cache that prevents false phase flags when explosions and pistons reshape the world.

Source: Updated-NoCheatPlus-NoCheatPlus, NCPCore/src/main/java/fr/neatmonster/nocheatplus/compat/blocks/changetracker/BlockChangeListener.java

Variations: Grim CompensatedWorld and Hydro WorldTracker apply S23 changes with transaction accuracy; AntiHaxerman's NetworkFilter whitelists the S23 packet (GPacketPlayServerBlockChange) so its pipeline processes block changes while dropping other traffic.

Wiki Cross-Reference

Clientbound 0x23: BlockPos packed long plus VarInt block state ID.

State ID follows global palette: type is id right-shift 4 and meta is id and 15.

Single-block correction; bulk edits use S21 chunk data or S22 multi change.

MCP 1.8.9 S23PacketBlockChange implements Packet dispatching to INetHandlerPlayClient.handleBlockChange; wire serde is readPacketData/writePacketData via readBlockPos, readVarIntFromBuffer.

1.8.9 callers: NetHandlerPlayServer.processPlayerDigging sends new S23PacketBlockChange (line 547) +2 more: https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/network/NetHandlerPlayServer.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.