0x26 S26PacketMapChunkBulk

Sends multiple chunks at once. Used for initial world load and large area updates.

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

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

worldchunk
Comprehensive 7/8

Fields

FieldTypeDescription
chunksChunk[]Array of chunk data with X/Z/bitmask/compressed data
skyLightSentbooleanWhether skylight data is included

Wire Encoding

FieldTypeNotes
Sky LightboolIncludes skylight
Column CountVarInt
Per Columnint,int,short,VarInt,byte[]X, Z, bitmask, dataSize, compressed data

MCP References

MCPNetHandlerPlayClient.handleMapChunkBulk()

Handler Interface

HNDINetHandlerPlayClient

Notes

S26 is the bulk version of S21, sending many chunks in a single packet. Used on world join and loading large areas. XRay modules also cancel S26 alongside S21 to prevent chunk updates.

Vanilla Source

S26PacketMapChunkBulk.java118 lines · MCP 1.8.9Original ↗
1
package net.minecraft.network.play.server;
2
3
import java.io.IOException;
4
import java.util.List;
5
import net.minecraft.network.Packet;
6
import net.minecraft.network.PacketBuffer;
7
import net.minecraft.network.play.INetHandlerPlayClient;
8
import net.minecraft.world.chunk.Chunk;
9
10
public class S26PacketMapChunkBulk implements Packet<INetHandlerPlayClient>
11
{
12
    private int[] xPositions;
13
    private int[] zPositions;
14
    private S21PacketChunkData.Extracted[] chunksData;
15
    private boolean isOverworld;
16
17
    public S26PacketMapChunkBulk()
18
    {
19
    }
20
21
    public S26PacketMapChunkBulk(List<Chunk> chunks)
22
    {
23
        int i = chunks.size();
24
        this.xPositions = new int[i];
25
        this.zPositions = new int[i];
26
        this.chunksData = new S21PacketChunkData.Extracted[i];
27
        this.isOverworld = !((Chunk)chunks.get(0)).getWorld().provider.getHasNoSky();
28
29
        for (int j = 0; j < i; ++j)
30
        {
31
            Chunk chunk = (Chunk)chunks.get(j);
32
            S21PacketChunkData.Extracted s21packetchunkdata$extracted = S21PacketChunkData.getExtractedData(chunk, true, this.isOverworld, 65535);
33
            this.xPositions[j] = chunk.xPosition;
34
            this.zPositions[j] = chunk.zPosition;
35
            this.chunksData[j] = s21packetchunkdata$extracted;
36
        }
37
    }
38
39
    /**
40
     * Reads the raw packet data from the data stream.
41
     */
42
    public void readPacketData(PacketBuffer buf) throws IOException
43
    {
44
        this.isOverworld = buf.readBoolean();
45
        int i = buf.readVarIntFromBuffer();
46
        this.xPositions = new int[i];
47
        this.zPositions = new int[i];
48
        this.chunksData = new S21PacketChunkData.Extracted[i];
49
50
        for (int j = 0; j < i; ++j)
51
        {
52
            this.xPositions[j] = buf.readInt();
53
            this.zPositions[j] = buf.readInt();
54
            this.chunksData[j] = new S21PacketChunkData.Extracted();
55
            this.chunksData[j].dataSize = buf.readShort() & 65535;
56
            this.chunksData[j].data = new byte[S21PacketChunkData.func_180737_a(Integer.bitCount(this.chunksData[j].dataSize), this.isOverworld, true)];
57
        }
58
59
        for (int k = 0; k < i; ++k)
60
        {
61
            buf.readBytes(this.chunksData[k].data);
62
        }
63
    }
64
65
    /**
66
     * Writes the raw packet data to the data stream.
67
     */
68
    public void writePacketData(PacketBuffer buf) throws IOException
69
    {
70
        buf.writeBoolean(this.isOverworld);
71
        buf.writeVarIntToBuffer(this.chunksData.length);
72
73
        for (int i = 0; i < this.xPositions.length; ++i)
74
        {
75
            buf.writeInt(this.xPositions[i]);
76
            buf.writeInt(this.zPositions[i]);
77
            buf.writeShort((short)(this.chunksData[i].dataSize & 65535));
78
        }
79
80
        for (int j = 0; j < this.xPositions.length; ++j)
81
        {
82
            buf.writeBytes(this.chunksData[j].data);
83
        }
84
    }
85
86
    /**
87
     * Passes this Packet on to the NetHandler for processing.
88
     */
89
    public void processPacket(INetHandlerPlayClient handler)
90
    {
91
        handler.handleMapChunkBulk(this);
92
    }
93
94
    public int getChunkX(int p_149255_1_)
95
    {
96
        return this.xPositions[p_149255_1_];
97
    }
98
99
    public int getChunkZ(int p_149253_1_)
100
    {
101
        return this.zPositions[p_149253_1_];
102
    }
103
104
    public int getChunkCount()
105
    {
106
        return this.xPositions.length;
107
    }
108
109
    public byte[] getChunkBytes(int p_149256_1_)
110
    {
111
        return this.chunksData[p_149256_1_].data;
112
    }
113
114
    public int getChunkSize(int p_179754_1_)
115
    {
116
        return this.chunksData[p_179754_1_].dataSize;
117
    }
118
}

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

Deep Dive

Role in the protocol

S26 is the bulk chunk loader: one packet carrying many chunk columns with a shared sky-light flag. Each column is x/z ints, a 16-bit section bitmask, a VarInt data size, then the compressed section data. The server builds it in EntityPlayerMP when a player joins or moves between chunk groups (corpus line 330), batching all newly-loaded columns so the client can decode them in one pass. It is the load-bearing packet for world join and teleport.

Vanilla handling

NetHandlerPlayClient.handleMapChunkBulk loops the columns, calls doPreChunk to mark each as loaded, invalidates the block receive region, then reads each chunk via the shared PacketUtil.readCompressed path and loads it into the world. Sky-light presence is decided once per packet by the boolean flag. The client then re-renders the whole batch; on 1.8.9 this is one of the few handlers that visibly blocks the render thread while decompressing.

Why clients touch it

Zero module hits in the 8-client corpus. The only non-vanilla reference is Rise 6.x's script NetworkAPI class registration. The packet metadata for S26 mentions XRay cancelling bulk chunks, but in these 8 clients no XRay module references S26PacketMapChunkBulk at all (Tenacity's XRay touches S21PacketChunkData, not S26). The absence is practical: cancelling S26 on a join breaks the world wholesale, and the ores an XRay wants to hide are already filtered in the chunk-render path, not at the packet layer.

Exploit surface

The real abuse surface is server-to-client: a malicious server can send an S26 with an enormous uncompressed payload or a huge column count to stall the client's decompression loop, a classic 1.8 lag-machine vector. Client-side there is nothing to exploit; the packet is inbound truth. Chunk-banning clients that want to blank specific regions do it by editing the column bitmask before the vanilla handler runs, which no module in this corpus implements for S26.

Server-Side Handling

EntityPlayerMP gathers pending ChunkCoordIntPair columns and constructs S26 when the load queue is flushed. The sky-light boolean is set once from the world's dimension provider. There is no per-packet size cap in vanilla; the server trusts its own chunk generation. A client can request chunks (C03 position movement) but cannot dictate the bulk layout.

Protocol Analysis

Wire format: boolean skyLightSent, VarInt column count, then per column: int x, int z, short bitmask, VarInt data length, compressed byte[]. The bitmask is a 16-bit section selector; sections absent from the mask are inherited from the previous chunk state. The compressed payload is zlib via PacketUtil.readCompressed, with the data length prefix on the wire.

Anti-Cheat Landscape

No anti-cheat inspects S26 content; it is inbound and unspoofable. The relevant protection is on the client: crash-patch modules that bound the column count or payload size. None of the 8 clients ship one for S26 specifically; Tenacity's AntiExploit covers explosion and particle floods instead.

implementation Implementation Cases

The bulk chunk-load packet used on join and teleport. Zero modules in the 8 clients consume it; the only non-vanilla reference is Rise 6.x's scripting API registration. Its payload is inbound world truth, and the exploitable direction is server to client.

PacketReceiveEvent on all clients; no module registers for S26 in the corpus.
All 8 clients keep the vanilla handler. Rise 6.1.30/6.2.4 expose S26 in the script NetworkAPI table only. Tenacity's XRay/Search chunk filtering is done against S21PacketChunkData, not S26.

anticheat Anti-Cheat Checks

S26 is the bulk chunk variant of S21 used by 1.7 and 1.8 servers: one packet carries several chunk columns with a shared skylight flag. Anticheats treat it exactly like the single-chunk packet: the bytes are decoded into the compensated world (Grim PacketWorldReaderEight handleMapChunkBulk, Intave MapChunkBulkReader, Kauri World update via ChunkDataBulk, Truthful CompensatedWorld via the global chunk cache), and the same xray and world-downloader protections apply (Photon WorldDownloaderSentinel). The corpus for S26 is therefore the replication pipeline with bulk-specific readers.

PacketWorldReaderEight map-chunk-bulk (Grim) (GrimAnticheat-Grim)

Decode the S26 bulk packet into Grim's compensated world, column by column.

handleMapChunkBulk reads the skylight boolean, column count, and per-column x/z and section masks, then for each column decodes the 16 sections with the 1.8 palette reader, skips the 256 biome bytes plus 2048 block-light (and 2048 sky-light when the flag is set) per section, and merges the column into the compensated world cache with the transaction id. The dispatch lives in BasePacketWorldReader, which routes chunk-data-bulk packets here.

Detects: Feeds the ground, collision and phase simulation the same way handleMapChunk does for S21; bulk loading cannot bypass the cache.

Source: GrimAnticheat-Grim, common/src/main/java/ac/grim/grimac/events/packets/worldreader/PacketWorldReaderEight.java

Variations: Intave MapChunkBulkReader reads only the per-column x/z coordinate arrays and hands them to the block cache; Kauri runUpdate(WrapperPlayServerChunkDataBulk) applies bulk columns inside keepalive actions; Hydro WorldTracker handleChunkBulk stores the sections in its chunk map.
MapChunkBulkReader (Intave) (intave-intave)

Read the chunk coordinates of every column in the S26 bulk packet for Intave's chunk coordinate tracking.

ChunkCoordinateReader implementation that clones the packet's x and z integer arrays, giving the block cache the coordinates of every column in the bulk; PacketReaders registers it as setup(MAP_CHUNK_BULK, MapChunkBulkReader::new). The coordinates feed the multi-chunk block cache that physics and interaction checks use.

Detects: Keeps the block cache's chunk grid in sync when whole regions load at once; no direct flag.

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

Variations: Grim handleMapChunkBulk and Kauri runUpdate(WrapperPlayServerChunkDataBulk) decode the full columns; ChunkCoordinateReader is Intave's shared interface with MapChunkReader for S21.
WorldDownloaderSentinel (Photon) (Photon-GitHub-AntiCheatAddition)

Detect WorldDownloader mods at the wdl channel handshake and disable their chunk caching and saving.

Same module as the S21 entry: it answers wdl|INIT with wdl|CONTROL packets that disable general saving, chunk caching, entity, tile-entity and container saving per config, then runs the sentinel detection. Bulk chunk delivery (S26) is the mod's highest-bandwidth input, so the module closes the hole before the client can persist anything.

Detects: WorldDownloader clients on 1.7 and 1.8 servers, where the bulk packet makes whole-region capture trivial.

Source: Photon-GitHub-AntiCheatAddition, src/main/java/de/photon/anticheataddition/modules/sentinel/mods/WorldDownloaderSentinel.java

Variations: No other anticheat in the corpus speaks the wdl channels; Negativity and LightAntiCheat approximate the protection with region bypass and unloaded-chunk checks.
Chunk column cache (Kauri) (funkemunky-KauriV3)

Store the 16x384x16 block grid of each replicated chunk so Kauri's checks can query block states.

Chunk holds a synchronized WrappedBlock[16][384][16] array keyed by chunk x/z; updateBlock writes into it (with the negative-y offset for 1.18 worlds) and getBlockAt returns an Optional of the block, mapping coordinates into the local grid. World fills these chunks from chunk-data and chunk-data-bulk packets via runUpdate, and BlockUpdateHandler routes S22 and S23 updates into the same storage.

Detects: Supplies block truth for Kauri's phase, reach and interaction checks; the S26 corpus hit is the ChunkDataBulk consumption in BlockUpdateHandler that fills these grids.

Source: funkemunky-KauriV3, Anticheat/src/main/java/dev/brighten/ac/handler/block/Chunk.java

Variations: Truthful CompensatedWorld delegates to a global world cache of ChunkSnapshot objects with a last-chunk access cache; Hydro WorldTracker stores PacketEvents BaseChunk arrays; Grim Column records hold BaseChunk[] plus the transaction id.

Wiki Cross-Reference

Clientbound 0x26 bulk loader: skylight bool, VarInt column count, then per-column data.

Each column sends X and Z ints plus a 16-bit section bitmask and compressed payload.

Used for join and large loads; column layout reuses the S21 section encoding.

MCP 1.8.9 S26PacketMapChunkBulk implements Packet dispatching to INetHandlerPlayClient.handleMapChunkBulk; wire serde is readPacketData/writePacketData via readBoolean, readBytes, readInt, readShort, readVarIntFromBuffer.

1.8.9 callers: EntityPlayerMP.? sends new S26PacketMapChunkBulk (line 344): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/entity/player/EntityPlayerMP.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.