<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AJava_Edition_Indev_level_format</id>
	<title>Minecraft:Java Edition Indev level format - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3AJava_Edition_Indev_level_format"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Java_Edition_Indev_level_format&amp;action=history"/>
	<updated>2026-06-15T02:00:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Java_Edition_Indev_level_format&amp;diff=143937&amp;oldid=prev</id>
		<title>SyncBot: Sync: new page from Minecraft</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Java_Edition_Indev_level_format&amp;diff=143937&amp;oldid=prev"/>
		<updated>2026-06-14T11:11:34Z</updated>

		<summary type="html">&lt;p&gt;Sync: new page from Minecraft&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{outdated|This format was [[Minecraft:Java Edition Alpha level format|replaced]] starting with [[Minecraft:Infdev]].|edition=java}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;.mclevel map format&amp;#039;&amp;#039;&amp;#039; is an old map format created by Notch. It is based on the [[Minecraft:NBT format]] and is GZip compressed.&lt;br /&gt;
&lt;br /&gt;
The map format was in use since [[Minecraft:Java Edition Indev 0.31 20100122-2251|Indev 0.31 20100122-2251]] up until [[Minecraft:Java Edition Indev 20100223|Indev 20100223]], after which it became non-functional and would stay that way until [[Minecraft:Java Edition Infdev 20100327|Infdev 20100327]] when it was outright removed.&lt;br /&gt;
&lt;br /&gt;
While Alpha (and Infdev) levels use NBT files, they have a very different file format.&lt;br /&gt;
&lt;br /&gt;
For details on the infinite map format, see [[Minecraft:Java Edition Alpha level format]].&lt;br /&gt;
&lt;br /&gt;
== NBT structure ==&lt;br /&gt;
&amp;lt;div class=&amp;quot;treeview&amp;quot;&amp;gt;&lt;br /&gt;
* {{nbt|compound|MinecraftLevel}}: The root tag.&lt;br /&gt;
** {{nbt|compound|About}}: Information about the level.&lt;br /&gt;
*** {{nbt|long|CreatedOn}}: The Unix time when the level was created.&lt;br /&gt;
*** {{nbt|string|Name}}: The name of the level, always &amp;quot;A Nice World.&amp;quot;&lt;br /&gt;
*** {{nbt|string|Author}}: The name of the user who created the level.&lt;br /&gt;
** {{nbt|compound|Environment}}: Information about the level&amp;#039;s environment, which varies based on the map generation settings.&lt;br /&gt;
*** {{nbt|short|TimeOfDay}}: The time in ticks affecting daylight cycle. Range 0 - 24000.&lt;br /&gt;
*** {{nbt|byte|SkyBrightness}}: The sky light level, 0 to 15.&lt;br /&gt;
*** {{nbt|int|SkyColor}}: The RGB color of the sky, 24 bits. Red is SkyColor &amp;gt;&amp;gt; 16 &amp;amp; 255, green is SkyColor &amp;gt;&amp;gt; 8 &amp;amp; 255, blue is SkyColor &amp;amp; 255. &lt;br /&gt;
*** {{nbt|int|FogColor}}: The RGB color of the fog, 24 bits. Red is FogColor &amp;gt;&amp;gt; 16 &amp;amp; 255, green is FogColor &amp;gt;&amp;gt; 8 &amp;amp; 255, blue is FogColor &amp;amp; 255.&lt;br /&gt;
*** {{nbt|int|CloudColor}}: The RGB color of the clouds, 24 bits. Red is CloudColor &amp;gt;&amp;gt; 16 &amp;amp; 255, green is CloudColor &amp;gt;&amp;gt; 8 &amp;amp; 255, blue is CloudColor &amp;amp; 255.&lt;br /&gt;
*** {{nbt|short|CloudHeight}}: The height of the clouds (Y coordinate).&lt;br /&gt;
*** {{nbt|byte|SurroundingGroundType}}: The block ID of the &amp;quot;surrounding ground&amp;quot;.&lt;br /&gt;
*** {{nbt|short|SurroundingGroundHeight}}: The height of the &amp;quot;surrounding ground&amp;quot;.&lt;br /&gt;
*** {{nbt|byte|SurroundingWaterType}}: The block ID of the &amp;quot;surrounding water&amp;quot;.&lt;br /&gt;
*** {{nbt|short|SurroundingWaterHeight}}: The height of the &amp;quot;surrounding water&amp;quot;.&lt;br /&gt;
** {{nbt|compound|Map}}: The actual map data.&lt;br /&gt;
*** {{nbt|short|Width}}: The width of the level.&lt;br /&gt;
*** {{nbt|short|Length}}: The length of the level.&lt;br /&gt;
*** {{nbt|short|Height}}: The height of the level.&lt;br /&gt;
*** {{nbt|list|Spawn}}: List of 3 TAG_Shorts for the X, Y, and Z spawn coordinates.&lt;br /&gt;
*** {{nbt|byte-array|Blocks}}: Width*Length*Height bytes of block IDs. (8 bits)&lt;br /&gt;
*** {{nbt|byte-array|Data}}: Width*Length*Height bytes of block data (4 bit) and light value (next 4 bit).&lt;br /&gt;
** {{nbt|list|Entities}}: List of TAG_Compounds for the entities in the level.&lt;br /&gt;
*** {{nbt|compound}} An entity. The player has its own entity, shown below as an example.&lt;br /&gt;
**** {{nbt|string|id}}: The entity ID. In this case, &amp;quot;LocalPlayer&amp;quot;.&lt;br /&gt;
**** {{nbt|list|Pos}}: List of 3 TAG_Floats for the X, Y, and Z position of the player.&lt;br /&gt;
**** {{nbt|list|Rotation}}: List of 2 TAG_Floats for the yaw and pitch of the player&amp;#039;s view.&lt;br /&gt;
**** {{nbt|list|Motion}}: List of 3 TAG_Floats for the X, Y, and Z motion in meters per tick.&lt;br /&gt;
**** {{nbt|float|FallDistance}}: How far the player has fallen.&lt;br /&gt;
**** {{nbt|short|Health}}: The number of hit points the player has. 20 is 10 hearts.&lt;br /&gt;
**** {{nbt|short|AttackTime}}: Number of ticks the player is immune to attacks.&lt;br /&gt;
**** {{nbt|short|HurtTime}}: Number of ticks the player is red from being attacked.&lt;br /&gt;
**** {{nbt|short|DeathTime}}: Number of ticks the player has been dead for - used for controlling the death animation.&lt;br /&gt;
**** {{nbt|short|Air}}: The number of ticks before the player starts to drown. It starts at 300.&lt;br /&gt;
**** {{nbt|short|Fire}}: When negative, the number of ticks before the player can catch on fire. When positive, the number of ticks before the fire is extinguished.&lt;br /&gt;
**** {{nbt|int|Score}}: The player&amp;#039;s score.&lt;br /&gt;
**** {{nbt|list|Inventory}}: List of TAG_Compounds representing items in the player&amp;#039;s inventory.&lt;br /&gt;
***** {{nbt|compound}} An item stack.&lt;br /&gt;
****** {{nbt|byte|Slot}}: The [[Minecraft:Java Edition data values#Inventory Slot Number|Slot]] the item is in.&lt;br /&gt;
****** {{nbt|short|id}}: The Item [[Minecraft:Java Edition data values#IDs|ID]].&lt;br /&gt;
****** {{nbt|short|Damage}}: The item&amp;#039;s [[Minecraft:Java Edition data values#Data|data]] value, or damage value for tools.&lt;br /&gt;
****** {{nbt|byte|Count}}: The number of this item in the stack. Range -128 to 127. Values less than 2 are not displayed in-game.&lt;br /&gt;
** {{nbt|list|TileEntities}}: List of TAG_Compounds for the tile entities in the level.&lt;br /&gt;
*** {{nbt|compound}} A tile entity.&lt;br /&gt;
**** {{nbt|string|id}}: Tile entity id. In this case, &amp;quot;Chest&amp;quot;.&lt;br /&gt;
**** {{nbt|int|Pos}}: Position of the tile entity, explained later.&lt;br /&gt;
**** {{nbt|list|Items}}: List of TAG_Compounds representing items in the chest.&lt;br /&gt;
***** {{nbt|compound}} An item stack.&lt;br /&gt;
****** {{nbt|byte|Slot}}: The [[Minecraft:Java Edition data values#Inventory Slot Number|Slot]] the item is in.&lt;br /&gt;
****** {{nbt|short|id}}: The Item [[Minecraft:Java Edition data values#IDs|ID]].&lt;br /&gt;
****** {{nbt|short|Damage}}: The item&amp;#039;s [[Minecraft:Java Edition data values#Data|data]] value, or damage value for tools.&lt;br /&gt;
****** {{nbt|byte|Count}}: The number of this item in the stack. Range -128 to 127. Values less than 2 are not displayed in-game.&lt;br /&gt;
&amp;lt;/div&amp;gt;Calculating &amp;quot;Pos&amp;quot; tag of the tile entity:&lt;br /&gt;
&lt;br /&gt;
pos = x + (y &amp;lt;&amp;lt; 10) + (z &amp;lt;&amp;lt; 20)&lt;br /&gt;
&lt;br /&gt;
Calculating X, Y, and Z from &amp;quot;Pos&amp;quot; tag:&lt;br /&gt;
&lt;br /&gt;
x = pos % 1024&lt;br /&gt;
&lt;br /&gt;
y = (pos &amp;gt;&amp;gt; 10) % 1024&lt;br /&gt;
&lt;br /&gt;
z = (pos &amp;gt;&amp;gt; 20) % 1024&lt;br /&gt;
&lt;br /&gt;
== Blocks ==&lt;br /&gt;
The block byte array is used to define the types of blocks that occupy a map.&lt;br /&gt;
The number of bytes in the array may be calculated by multiplying the dimensions of the map.&lt;br /&gt;
Y being the up direction rather than Z.&lt;br /&gt;
For hex values see [[Minecraft:Java Edition data values#Blocks|Block IDs]].&lt;br /&gt;
&lt;br /&gt;
To access a specific block from either the block or data array from XYZ coordinates, use the following formula:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;array index = (y * length + z) * width + x&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Data ==&lt;br /&gt;
The data byte array is used for lighting and extra block data.&lt;br /&gt;
&lt;br /&gt;
For extended information on block metadata, refer to [[Minecraft:Java Edition data value/Indev]].&lt;br /&gt;
&lt;br /&gt;
== Lighting ==&lt;br /&gt;
[[File:Lighting values.png]]&lt;br /&gt;
&lt;br /&gt;
There are 16 levels of lighting for a block ranging from &amp;lt;code&amp;gt;0x0&amp;lt;/code&amp;gt; (0, no light) to &amp;lt;code&amp;gt;0xF&amp;lt;/code&amp;gt; (15, full light).&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [https://web.archive.org/web/20100124075449/http://www.minecraft.net/docs/levelformat.jsp Indev level format specification on minecraft.net] &amp;lt;small&amp;gt;(archived)&amp;lt;/small&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox Java Edition technical|general}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Spielstand-Speicherung/Indev Level Format]]&lt;br /&gt;
[[Minecraft:fr:Format de niveau de l&amp;#039;édition Java Indev]]&lt;br /&gt;
[[Minecraft:ja:Levelフォーマット/Java Edition Indev]]&lt;br /&gt;
[[Minecraft:nl:Indev level formaat]]&lt;br /&gt;
[[Minecraft:pt:Formato de nível da Edição Java Indev]]&lt;br /&gt;
[[Minecraft:ru:Формат файлов Minecraft (NBT)]]&lt;br /&gt;
[[Minecraft:zh:Indev世界格式]]&lt;/div&gt;</summary>
		<author><name>SyncBot</name></author>
	</entry>
</feed>