<?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%3ABedrock_Edition_level_format%2Fv0.1.0_alpha</id>
	<title>Minecraft:Bedrock Edition level format/v0.1.0 alpha - 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%3ABedrock_Edition_level_format%2Fv0.1.0_alpha"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Bedrock_Edition_level_format/v0.1.0_alpha&amp;action=history"/>
	<updated>2026-04-09T10:01:31Z</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:Bedrock_Edition_level_format/v0.1.0_alpha&amp;diff=49194&amp;oldid=prev</id>
		<title>imported&gt;LPT5: Changed location and description of facing values in accordance with disassmbled code from the APK https://gitlab.com/Monika-Trenholme/mcpe-level-save-disassembly/-/blob/main/code/a0.1.0_touch_proto.cpp?ref_type=heads</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Bedrock_Edition_level_format/v0.1.0_alpha&amp;diff=49194&amp;oldid=prev"/>
		<updated>2024-07-21T22:50:23Z</updated>

		<summary type="html">&lt;p&gt;Changed location and description of facing values in accordance with disassmbled code from the APK https://gitlab.com/Monika-Trenholme/mcpe-level-save-disassembly/-/blob/main/code/a0.1.0_touch_proto.cpp?ref_type=heads&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is the specification for the [[Minecraft:Bedrock Edition level format|level format]] in [[Minecraft:Pocket Edition v0.1.0 alpha]] up to [[Minecraft:Pocket Edition v0.2.0 alpha]] where the format was changed to [[Minecraft:NBT format|NBT]] instead of raw binary.&lt;br /&gt;
==level.dat==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
! Data&lt;br /&gt;
! Length (Bytes)&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Header&lt;br /&gt;
| 8&lt;br /&gt;
| A little-endian 32 bit integer used to identify the version of the tool used to save the file, always 1 followed by a little-endian 32 bit integer that marks the size of the file subtract the header.&lt;br /&gt;
|-&lt;br /&gt;
| Seed&lt;br /&gt;
| 4&lt;br /&gt;
| A big-endian 32 bit signed integer&lt;br /&gt;
|-&lt;br /&gt;
| Spawn X&lt;br /&gt;
| 4&lt;br /&gt;
| A big-endian 32 bit signed integer&lt;br /&gt;
|-&lt;br /&gt;
| Spawn Y&lt;br /&gt;
| 4&lt;br /&gt;
| A big-endian 32 bit signed integer&lt;br /&gt;
|-&lt;br /&gt;
| Spawn Z&lt;br /&gt;
| 4&lt;br /&gt;
| A big-endian 32 bit signed integer&lt;br /&gt;
|-&lt;br /&gt;
| Estimated world size&lt;br /&gt;
| 8&lt;br /&gt;
|  A big-endian 64 bit integer representing the world size in bits{{verify}}&lt;br /&gt;
|-&lt;br /&gt;
| Last Played&lt;br /&gt;
| 4&lt;br /&gt;
| A big-endian 32 bit unix timestamp indicating when the level was last saved, will overflow and become negative at &amp;#039;&amp;#039;&amp;#039;03:14:08 UTC on 19 January 2038&amp;#039;&amp;#039;&amp;#039; due to [[Minecraft:wikipedia:Year 2038 problem|the year 2038 problem]] and will overflow every ~136 years after that.&lt;br /&gt;
|-&lt;br /&gt;
| Length of World Name in Bytes&lt;br /&gt;
| 2&lt;br /&gt;
| A big-endian unsigned 16 bit integer&lt;br /&gt;
|-&lt;br /&gt;
| World Name&lt;br /&gt;
| Variable&lt;br /&gt;
| A [[Minecraft:wikipedia:Code_page_437|CP437]] encoded string&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;This is due to the font texture found in the assets folder of the apk, future versions may render non-ASCII characters differently&amp;lt;/ref&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==player.dat==&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
! Data&lt;br /&gt;
! Length (Bytes)&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Header&lt;br /&gt;
| 8&lt;br /&gt;
| A little-endian 32 bit integer used to identify the version of the tool used to save the file, always 1 followed by a little-endian 32 bit integer that marks the size of the file subtract the header, always 80.&lt;br /&gt;
|-&lt;br /&gt;
| Pos X&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Pos Y&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Pos Z&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Motion X&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Motion Y&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Motion Z&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Pitch&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float, an error in the code causes this value to be read incorrectly&lt;br /&gt;
|-&lt;br /&gt;
| Yaw&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float representing the player&amp;#039;s yaw in degrees&lt;br /&gt;
|-&lt;br /&gt;
| Unknown&lt;br /&gt;
| 4&lt;br /&gt;
| A little-endian 32 bit float&lt;br /&gt;
|-&lt;br /&gt;
| Fire&lt;br /&gt;
| 2&lt;br /&gt;
| A little-endian signed short representing the number of ticks until the fire is put out. Negative values reflect how long the player can stand in fire before burning. Default value: -20&lt;br /&gt;
|-&lt;br /&gt;
| Air&lt;br /&gt;
| 2&lt;br /&gt;
| A little-endian signed short representing how much air the player has, in ticks. Fills to a maximum of 300 in air. Decreases while underwater.{{verify}}&lt;br /&gt;
|-&lt;br /&gt;
| Unknown&lt;br /&gt;
| 4&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| Hotbar&lt;br /&gt;
| 36&lt;br /&gt;
| 9 slots that take up 4 bytes each, the first two bytes is the item ID&amp;lt;ref group=&amp;quot;note&amp;quot;&amp;gt;Every items from Pocket Edition [[Minecraft:Pocket Edition v0.1.0 alpha|0.1.0]] to [[Minecraft:Pocket Edition v0.1.3 alpha|0.1.3]] has an ID only takes up 1 byte with the exception of [[Minecraft:Camera]], which takes 2 bytes (c8 01).&amp;lt;/ref&amp;gt;. The other two bytes have unknown use and are always 0x00. The last slot is always saved as 0xFF for every byte, it&amp;#039;s known to be a hotbar slot as the &amp;lt;code&amp;gt;minecraftpe&amp;lt;/code&amp;gt; library loops through 9 hotbar slots.&lt;br /&gt;
|}&lt;br /&gt;
== Notes ==&lt;br /&gt;
{{notelist}}&lt;br /&gt;
[[Category:Development]]&lt;br /&gt;
[[Minecraft:pt:Formato de nível da Edição Bedrock/v0.1.0 alpha]]&lt;/div&gt;</summary>
		<author><name>imported&gt;LPT5</name></author>
	</entry>
</feed>