Map Editing (hex)

Information
(Note: in this example a default server_level.dat is being used, with the size of 256x256x64. Level files with bigger dimensions may differ in amount of bytes.) The server_level.dat file is where the Minecraft Server keeps the level information. As this file is primarily raw level data, it can be quite large. A regular 256x256x64 sized level is 4 megabytes in size. Therefore the datafile on disk is compressed by the server using Gzip.

The contents of the datafile is the number 656127880 as 32 bit integer (0x27 0x1B 0xB7 0x88 in HEX), then the number 2 as byte (0x02 in HEX), then a serialized Level Java object. To deserialize one must have some way of decoding the java serialization, e.g. by using the classes from the distributed server software with a creation and saving class. This has several advances because it allows easy alteration of all map properties like the spawn location and even the dimensions.

Others have edited the map by only editing the bytes in a Gzip extracted file and then compressing again. To do this, one must keep the first 344 (14E in HEX) bytes intact and edit the next 256x256x64 bytes. It is also possible to alter the spawn location coordinates this way, by editing 3 integer values starting at byte 284 and thus overwriting the next 12 bytes (3 integers).

Blocks and Values
This is a list of all the blocks and values used.

Notes: Black rock is the rock lining the base of the level, and can be placed in-game by an admin. Non-still water and lava cause the server log to stop updating and any connecting clients freeze.