0x34 S34PacketMaps
Updates a map item's data (pixels, colors).
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| mapId | VarInt | Map item damage value |
| data | byte[] | Map pixel colors |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Map ID | VarInt | |
| Data Length | VarInt | |
| Data | byte[] | Pixel colors + scale + coords + icons |
MCP References
NetHandlerPlayClient.handleMaps()Handler Interface
INetHandlerPlayClientVanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
Deobfuscated MCP 1.8.9 source of S34PacketMaps, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S34PacketMaps.java) at build time and verified present.
Deep Dive
Role in the protocol
S34PacketMaps delivers a map item's data: VarInt map id, byte scale, a collection of Vec4b map decorations (type, x, y, rotation), a short patch width, a short patch height, and the patch bytes, each a 4-bit palette index into the map color table. MapData builds it from the dirty column region; a full refresh goes out every fifth tick, incremental patches in between.
Vanilla handling
NetHandlerPlayClient.handleMaps looks up MapData by map id in the player's inventory, applies the column patch into the colors buffer, updates scale and decorations, and marks the map for re-render. MapData.func_176101_a (lines 244-246 in the bundled sources) constructs the packet; the 5-tick full refresh keeps the renderer honest when no patch traffic flows. The client trusts the patch dimensions and writes them into the render buffer directly.
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. No ESP, no map exploit, no minimap integration consumes S34 in these corpora. Map pixels are world render data with no entity, inventory or movement signal, so cheat clients have nothing to gain from it.
Exploit surface
The only theoretical abuse is server-side: a malicious server can send patch dimensions that exceed the map buffer and stress the client renderer. That is a denial-of-service vector against the client, not a cheat surface, and no client in the corpus defends against it. No anti-cheat measures S34 because it carries no gameplay-trust signal.
Server-Side Handling
MapData.func_176101_a (lines 244-246) produces S34(mapId, scale, visible decorations, colors, minX, minY, width, height); a full refresh is emitted every fifth tick (field_176109_i % 5 == 0) and dirty-column patches in between. NetHandlerPlayClient.handleMaps resolves the MapData by id from the player's inventory, copies the patch into the colors array, refreshes scale and decorations, and triggers a re-render. The client applies the patch without validating dimensions.
Protocol Analysis
Wire: VarInt mapId, byte scale, VarInt icon count, then per icon a byte type, byte x, byte y, byte rotation, then short patch width, short patch height, then width x height bytes of 4-bit palette indexes. The patch is a dirty-column region; the full 128x128 refresh is a single patch with 16,384 bytes of indexes. PLAY state only, delivered to players who hold the map or stand near it.
Anti-Cheat Landscape
No anti-cheat touches S34: it is render data delivered to map holders and nearby players. The only risk is a malicious server sending oversized patches to load the client renderer, a server-side attack with no client cheat counterpart.
implementation Implementation Cases
Zero module hits in the 8 clients. Map pixel patches are pure render data; no ESP or map-exploit module consumes S34 in these corpora. The only non-vanilla reference is the Rise 6.x script API registration table.
anticheat Anti-Cheat Checks
No anti-cheat consumes S34. The corpus sweep for S34PacketMaps and PacketPlayOutMap returns only keyword noise from the chunk family: Artemis' HardcodeMap generator and its GPacketPlayServerChunkLoad and GPacketPlayServerChunkLoadBulk wrappers match on the PacketPlayOutMapChunk class names, and Kauri's BlockUpdateHandler Javadoc mentions a wrapped map-chunk packet. None of these read map item data. S34 is pure render state for players holding or standing near a map, with no movement, combat or inventory signal, so no check in any cloned anticheat references it.
Related Packets
Wiki Cross-Reference
Scale runs 0 to 4, where 0 is fully zoomed in at 1 block per pixel and 4 is fully zoomed out at 16 blocks per pixel.
Each map icon carries a type plus X and Z in map coordinates (-128 for the far edge to +127) and a direction of 0-15, where 0 is a vertical icon and each step rotates 22.5 degrees.
MCP 1.8.9 S34PacketMaps implements Packet
1.8.9 callers: MapData.getPacket sends new S34PacketMaps (line 270): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/world/storage/MapData.java
Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.