Minecraft:Bedrock Edition level format: Difference between revisions
More actions
Remove broken links to missing pages |
Fix template calls: add MC/ prefix |
||
| Line 1: | Line 1: | ||
{{about|the format since [[Minecraft:Bedrock Edition 1.2.13]]|the format in former game versions|Bedrock Edition level format/History}} | {{about|the format since [[Minecraft:Bedrock Edition 1.2.13]]|the format in former game versions|Bedrock Edition level format/History}} | ||
{{ | {{MC/Exclusive|bedrock}} | ||
{{ | {{MC/Cleanup|need to check whether there's anything out of date}} | ||
''Bedrock Edition'' uses a modified version of Google's LevelDB, which uses the Zlib compression format for world storage. The world storage files are located in a world file in <code>[[Minecraft:com.mojang]]</code>. | ''Bedrock Edition'' uses a modified version of Google's LevelDB, which uses the Zlib compression format for world storage. The world storage files are located in a world file in <code>[[Minecraft:com.mojang]]</code>. | ||
| Line 27: | Line 27: | ||
Accordingly, such a key may be 9, 10, 13 or 14 bytes long. Not all subchunks necessarily exist for a given chunk. | Accordingly, such a key may be 9, 10, 13 or 14 bytes long. Not all subchunks necessarily exist for a given chunk. | ||
The "BlockEntity", "Entity" and "PendingTicks" records are represented by a sequence of concatenated root tags in a variant of NBT which stores the lengths and the multi-byte integer types in little-endian format, as opposed to the big-endian format used by {{ | The "BlockEntity", "Entity" and "PendingTicks" records are represented by a sequence of concatenated root tags in a variant of NBT which stores the lengths and the multi-byte integer types in little-endian format, as opposed to the big-endian format used by {{MC/El|je}} or the original NBT specification. | ||
The value 0 is used in the "Version" record in old style worlds; higher values are used in infinite worlds. | The value 0 is used in the "Version" record in old style worlds; higher values are used in infinite worlds. | ||
| Line 202: | Line 202: | ||
=== NBT Structure === | === NBT Structure === | ||
<div class="treeview"> | <div class="treeview"> | ||
* {{ | * {{MC/Nbt|compound}}: World data. | ||
** {{ | ** {{MC/Nbt|compound|abilities}}: The default permissions for players in the world. | ||
*** {{ | *** {{MC/Nbt|byte|attackmobs}}: 1 or 0 (true/false) - true if the player can attack mobs. | ||
*** {{ | *** {{MC/Nbt|byte|attackplayers}}: 1 or 0 (true/false) - true if the player can attack other players. | ||
*** {{ | *** {{MC/Nbt|byte|build}}: 1 or 0 (true/false) - true if the player can place blocks. | ||
*** {{ | *** {{MC/Nbt|byte|doorsandswitches}}: 1 or 0 (true/false) - true if the player is able to interact with redstone components. | ||
*** {{ | *** {{MC/Nbt|byte|flying}}: 1 or 0 (true/false) - true if the player is currently flying. | ||
*** {{ | *** {{MC/Nbt|float|flySpeed}}: The flying speed, always 0.05. | ||
*** {{ | *** {{MC/Nbt|byte|instabuild}}: 1 or 0 (true/false) - true if the player can instantly destroy blocks. | ||
*** {{ | *** {{MC/Nbt|byte|invulnerable}}: 1 or 0 (true/false) - true if the player is immune to all damage and harmful effects. | ||
*** {{ | *** {{MC/Nbt|byte|lightning}}: 1 or 0 (true/false) - true if the player was struck by lightning. | ||
*** {{ | *** {{MC/Nbt|byte|mayfly}}: 1 or 0 (true/false) - true if the player can fly. | ||
*** {{ | *** {{MC/Nbt|byte|mine}}: 1 or 0 (true/false) - true if the player can destroy blocks. | ||
*** {{ | *** {{MC/Nbt|byte|mute}}: 1 or 0 (true/false) - true if the player messages cannot be seen by other players. | ||
*** {{ | *** {{MC/Nbt|byte|noclip}}: 1 or 0 (true/false) - true if the player can phase through blocks. | ||
*** {{ | *** {{MC/Nbt|byte|op}}: 1 or 0 (true/false) - true if the player has operator commands. | ||
*** {{ | *** {{MC/Nbt|byte|opencontainers}}: 1 or 0 (true/false) - true if the player is able to open containers. | ||
*** {{ | *** {{MC/Nbt|byte|teleport}}: 1 or 0 (true/false) - true if the player is allowed to teleport. | ||
*** {{ | *** {{MC/Nbt|float|verticalFlySpeed}}: The vertical flight speed, always 1. {{MC/Info needed}} | ||
*** {{ | *** {{MC/Nbt|float|walkSpeed}}: The walking speed, always 0.1. | ||
*** {{ | *** {{MC/Nbt|byte|worldbuilder}}: 1 or 0 (true/false) - true if the player is a world builder. (Removed 1.21.120 {{MC/Info needed}}) | ||
** {{ | ** {{MC/Nbt|byte|allowdestructiveobjects}}: The <code>allowdestructiveobjects</code> game rule. {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|allowmobs}}: The <code>allowmobs</code> game rule. {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|string|baseGameVersion}}: The version of Minecraft that is the maximum version to load resources from. Eg. setting this to <code>1.16.0</code> removes any features that were added after version <code>1.16.0</code>. | ||
** {{ | ** {{MC/Nbt|string|BiomeOverride}}: Makes the world into a single biome world and the biome set here is the biome of this single biome world. | ||
** {{ | ** {{MC/Nbt|byte|bonusChestEnabled}}: 1 or 0 (true/false) - true if the bonus chest is enabled. | ||
** {{ | ** {{MC/Nbt|byte|bonusChestSpawned}}: 1 or 0 (true/false) - true if the bonus chest has been placed in the world. Turning this to false spawns another bonus chest near the spawn coordinates. | ||
** {{ | ** {{MC/Nbt|byte|codebuilder}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|CenterMapsToOrigin}}: 1 or 0 (true/false) - true if the maps should be on a grid or centered to exactly where they are created. Default to 0. | ||
** {{ | ** {{MC/Nbt|byte|cheatsEnabled}}: 1 or 0 (true/false) - true if cheats are on. | ||
** {{ | ** {{MC/Nbt|byte|commandblockoutput}}: The <code>commandblockoutput</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|commandblocksenabled}}: The <code>commandblocksenabled</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|commandsEnabled}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|ConfirmedPlatformLockedContent}}: 1 or 0 (true/false) - tells if the world has Platform-Specific texture packs or content. Used to prevent cross play in specific worlds, that use assets allowed only on specific consoles. | ||
** {{ | ** {{MC/Nbt|long|currentTick}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|daylightCycle}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|Difficulty}}: The current difficulty setting. 0 is Peaceful, 1 is Easy, 2 is Normal, and 3 is Hard. | ||
** {{ | ** {{MC/Nbt|int|Dimension}}: The dimension the player is in. 0 is the Overworld, 1 is the Nether, and 2 is the End. {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|dodaylightcycle}}: The <code>dodaylightcycle</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|doentitiydrops}}: The <code>doentitiydrops</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|dofiretick}}: The <code>dofiretick</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|doimmediaterespawn}}: The <code>doimmediaterespawn</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|doinsomnia}}: The <code>doinsomnia</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|dolimitedcrafting}}: The <code>dolimitedcrafting</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|domobloot}}: The <code>domobloot</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|domobspawning}}: The <code>domobspawning</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|dotiledrops}}: The <code>dotiledrops</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|doweathercycle}}: The <code>doweathercycle</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|drowningdamage}}: The <code>drowningdamage</code> game rule. | ||
** {{ | ** {{MC/Nbt|int|editorWorldType}}: The Editor world type. 0 is World, 1 is Project. | ||
** {{ | ** {{MC/Nbt|byte|educationFeaturesEnabled}}: Enables the <code>chemistry</code> resource and behavior packs for the world, containing some features from ''[[Minecraft:Minecraft Education]]''. | ||
** {{ | ** {{MC/Nbt|string|EducationOid}}: A [[Minecraft:UUID]]. {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|string|EducationProductId}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|eduOffer}}: Marks a world as a ''[[Minecraft:Minecraft Education]]'' world (worlds with this set to 1 do not open on ''[[Minecraft:Bedrock Edition]]''!). | ||
** {{ | ** {{MC/Nbt|compound|eduSharedResource}} | ||
*** {{ | *** {{MC/Nbt|string|buttonName}}: Unused in ''Bedrock Edition'', but is used in ''Education Edition'' as part of the Resource Link feature on the Pause Screen. It defines the Resource Link Button Text. | ||
*** {{ | *** {{MC/Nbt|string|linkUri}}: Unused in ''Bedrock Edition'', but is used in ''Education Edition'' as part of the Resource Link feature on the Pause Screen. It defines what link opens upon clicking the Resource Link Button. | ||
** {{ | ** {{MC/Nbt|compound|experiments}} | ||
*** {{ | *** {{MC/Nbt|byte|experiments_ever_used}}: 1 or 0 (true/false) - true if the world is locked on experimental gameplay. | ||
*** {{ | *** {{MC/Nbt|byte|saved_with_toggled_experiments}}: 1 or 0 (true/false) - true if the world has been saved with experiments on before. | ||
*** ... Additional bytes for each experiment that Minecraft has/had. | *** ... Additional bytes for each experiment that Minecraft has/had. | ||
** {{ | ** {{MC/Nbt|byte|falldamage}}: The <code>falldamage</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|firedamage}}: The <code>firedamage</code> game rule. | ||
** {{ | ** {{MC/Nbt|string|FlatWorldLayers}}: JSON that controls generation of flat worlds. The <code>block_layers</code> array must contain at least 2 valid blocks, otherwise the world will generate as void. Default is <code>{"biome_id":1,"block_layers":[{"block_name":"minecraft:bedrock","count":1},{"block_name":"minecraft:dirt","count":2},{"block_name":"minecraft:grass_block","count":1}],"encoding_version":6,"preset_id":"ClassicFlat","structure_options":null,"world_version":"version.post_1_18"}</code>. | ||
** {{ | ** {{MC/Nbt|byte|globalmute}}: The <code>globalmute</code> game rule. {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|ForceGameType}}: 1 or 0 (true/false) - true if force the player into the game mode defined in <code>GameType</code>. | ||
** {{ | ** {{MC/Nbt|byte|freezedamage}}: The <code>freezedamage</code> game rule. | ||
** {{ | ** {{MC/Nbt|int|functioncommandlimit}}: The <code>functioncommandlimit</code> game rule. | ||
** {{ | ** {{MC/Nbt|int|GameType}}: The default game mode of the player. 0 is Survival, 1 is Creative, 2 is Adventure, 5 is Default, and 6 is Spectator. | ||
** {{ | ** {{MC/Nbt|int|Generator}}: The world type. 0 is [[Minecraft:Old]], 1 is Infinite, 2 is Flat, 5 is Void, and others are Infinite with the bedrock layer at 0. | ||
** {{ | ** {{MC/Nbt|byte|hasBeenLoadedInCreative}}: Whether the world has achievements locked. Set to 1 if the default game mode is set to Creative, if [[Minecraft:Commands#Cheats|cheats]] have been enabled, or if a [[Minecraft:add-on|behavior pack]] has been equipped. | ||
** {{ | ** {{MC/Nbt|byte|hasLockedBehaviorPack}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|hasLockedResourcePack}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|HasUncompleteWorldFileOnDisk}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|immutableWorld}}: Is read-only. | ||
** {{ | ** {{MC/Nbt|string|InventoryVersion}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|isCreatedInEditor}}: 1 or 0 (true/false) - true if it was created from the ''[[Minecraft:Bedrock Editor]]''. | ||
** {{ | ** {{MC/Nbt|byte|isExportedFromEditor}}: 1 or 0 (true/false) - true if exported from the ''Bedrock Editor''. | ||
** {{ | ** {{MC/Nbt|byte|isFromLockedTemplate}}: 1 or 0 (true/false) - true if the world is created from a world template where the world options were intended not to be modified. | ||
** {{ | ** {{MC/Nbt|byte|isFromWorldTemplate}}: 1 or 0 (true/false) - true if the world is created from a world template. | ||
** {{ | ** {{MC/Nbt|byte|IsHardcore}}: 1 or 0 (true/false) - true if the world is in Hardcore mode. | ||
** {{ | ** {{MC/Nbt|byte|isRandomSeedAllowed}}: 1 or 0 (true/false) - true if the world template generates with a new, random seed. | ||
** {{ | ** {{MC/Nbt|byte|IsSingleUseWorld}}: 1 or 0 (true/false) - (unused) may cause world to not save, or delete after use. Seems to default back to false when a world is loaded. | ||
** {{ | ** {{MC/Nbt|byte|isWorldTemplateOptionLocked}}: 1 or 0 (true/false) - true if the world options cannot be modified until the user accepts that they are changing the map. | ||
** {{ | ** {{MC/Nbt|byte|keepinventory}}: The <code>keepinventory</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|LANBroadcast}}: Whether the world has been opened with the "Visible to LAN players" world setting enabled. | ||
** {{ | ** {{MC/Nbt|byte|LANBroadcastIntent}}: Whether the "Visible to LAN players" world toggle is enabled. | ||
** {{ | ** {{MC/Nbt|list|lastOpenedWithVersion}}: Five {{MC/Nbt|int|int}}s representing the last version with which the world was opened. Eg. for the [[Minecraft:Bedrock Edition Preview 1.20.30.22|beta/''Preview'' 1.20.30.22]] the version is <code>1 20 30 22 1</code>. | ||
** {{ | ** {{MC/Nbt|long|LastPlayed}}: Stores a timestamp of when the world was last played as the number of seconds since the epoch (1/1/1970). | ||
** {{ | ** {{MC/Nbt|string|LevelName}}: Specifies the name of the world. | ||
** {{ | ** {{MC/Nbt|float|lightningLevel}}: Related to the current strength of thunderstorms.{{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|lightningTime}}: {{MC/Info needed}}Related to the weather cycle regarding thunderstorms. | ||
** {{ | ** {{MC/Nbt|int|LimitedWorldOriginX}}: The X coordinate where limited (old) world generation started. | ||
** {{ | ** {{MC/Nbt|int|LimitedWorldOriginY}}: The Y coordinate where limited (old) world generation started. | ||
** {{ | ** {{MC/Nbt|int|LimitedWorldOriginZ}}: The Z coordinate where limited (old) world generation started. | ||
** {{Nbt|int|LimitedWorldWidth}}: The width (in chunks) of the borders surrounding the (old) world generation. Defaults to 16. | ** {{MC/Nbt|int|LimitedWorldWidth}}: The width (in chunks) of the borders surrounding the (old) world generation. Defaults to 16. | ||
** {{Nbt|int|LimitedWorldDepth}}: The depth (in chunks) of the borders surrounding the (old) world generation. Defaults to 16. | ** {{MC/Nbt|int|LimitedWorldDepth}}: The depth (in chunks) of the borders surrounding the (old) world generation. Defaults to 16. | ||
** {{ | ** {{MC/Nbt|byte|locatorbar}}: The <code>locatorbar</code> game rule. | ||
** {{ | ** {{MC/Nbt|int|maxcommandchainlength}}: The <code>maxcommandchainlength</code> game rule. | ||
** {{ | ** {{MC/Nbt|list|MinimumCompatibleClientVersion}}: Five {{MC/Nbt|int|int}}s representing the minimum compatible client version that is needed to open the world. Eg. for the [[Minecraft:Bedrock Edition Preview 1.20.30.22|beta/''Preview'' 1.20.30.22]] the minimum compatible version is <code>1 20 30 0 0</code>. | ||
** {{ | ** {{MC/Nbt|byte|mobgriefing}}: The<code>mobgriefing</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|MultiplayerGame}}: Whether the world has been opened with the "Multiplayer Game" world setting enabled. | ||
** {{ | ** {{MC/Nbt|byte|MultiplayerGameIntent}}: Whether the "Multiplayer Game" world toggle is enabled. | ||
** {{ | ** {{MC/Nbt|byte|naturalregeneration}}: The <code>naturalregeneration</code> game rule. | ||
** {{ | ** {{MC/Nbt|int|NetherScale}}: Defaults to 8. This is used to tell the game how many Overworld blocks go into one nether block (X blocks in the nether = 1 block in the overworld). | ||
** {{ | ** {{MC/Nbt|int|NetworkVersion}}: The protocol version of the version the world was last played on. | ||
** {{ | ** {{MC/Nbt|int|permissionsLevel}}: What permissions a player defaults to, when joining a world. | ||
** {{ | ** {{MC/Nbt|int|Platform}}: Seems to store the platform that the level is created on. Currently observed value is 2. | ||
** {{ | ** {{MC/Nbt|int|PlatformBroadcastIntent}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|PlayerHasDied}}: 1 or 0 (true/false) - true if a player has died.{{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|playerPermissionsLevel}}: What permissions a player has. | ||
** {{ | ** {{MC/Nbt|int|playersleepingpercentage}}: The <code>playersleepingpercentage</code> game rule, values above 100 mean that night will never turn into day. | ||
** {{ | ** {{MC/Nbt|string|prid}}: The UUID of the premium world template this world was created with. Used for [[Minecraft:Marketplace#Worlds|Marketplace worlds]].{{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|projectilescanbreakblocks}}: The <code>projectilescanbreakblocks</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|pvp}}: The <code>pvp</code> game rule. | ||
** {{ | ** {{MC/Nbt|float|rainLevel}}: Related to the current strength of rain.{{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|rainTime}}: Related to the weather cycle regarding rain.{{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|long|RandomSeed}}: Level seed. | ||
** {{ | ** {{MC/Nbt|int|randomtickspeed}}: The <code>randomtickspeed</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|recipesunlock}}: The <code>recipesunlock</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|requiresCopiedPackRemovalCheck}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|respawnblocksexplode}}: The <code>respawnblocksexplode</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|sendcommandfeedback}}: The <code>sendcommandfeedback</code> game rule. | ||
** {{ | ** {{MC/Nbt|int|serverChunkTickRange}}: Simulation distance.{{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|byte|showbordereffect}}: The <code>showbordereffect</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|showcoordinates}}: The <code>showcoordinates</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|showdaysplayed}}: The <code>showdaysplayed</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|showdeathmessages}}: The <code>showdeathmessages</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|showrecipemessages}}: The <code>showrecipemessages</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|showtags}}: The <code>showtags</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|spawnMobs}}: 1 or 0 (true/false) - true if mobs can spawn. | ||
** {{ | ** {{MC/Nbt|int|spawnradius}}: The <code>spawnradius</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|SpawnV1Villagers}}: Spawn pre-1.10.0 villagers. | ||
** {{ | ** {{MC/Nbt|int|SpawnX}}: The X coordinate of the player's spawn position. Defaults to 0. | ||
** {{ | ** {{MC/Nbt|int|SpawnY}}: The Y coordinate of the player's spawn position. Defaults to 64. | ||
** {{ | ** {{MC/Nbt|int|SpawnZ}}: The Z coordinate of the player's spawn position. Defaults to 0. | ||
** {{ | ** {{MC/Nbt|byte|startWithMapEnabled}}: 1 or 0 (true/false) - true if new players spawn with a locator map. | ||
** {{ | ** {{MC/Nbt|int|StorageVersion}}: Version of ''Bedrock Edition'' Storage Tool, currently is 10. | ||
** {{ | ** {{MC/Nbt|byte|texturePacksRequired}}: 1 or 0 (true/false) - true if the user must download the texture packs applied to the world to join. | ||
** {{ | ** {{MC/Nbt|long|Time}}: Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 24000 ticks per Minecraft daylight cycle, making the full cycle length 20 minutes. 0 is the start of daytime, 12000 is the start of sunset, 13800 is the start of nighttime, 22200 is the start of sunrise, and 24000 is daytime again. The value stored in level.dat is always increasing and can be larger than 24000, but the "time of day" is always modulo 24000 of the "Time" field value. | ||
** {{ | ** {{MC/Nbt|byte|tntexplodes}}: The <code>tntexplodes</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|tntexplosiondropdecay}}: The <code>tntexplosiondropdecay</code> game rule. | ||
** {{ | ** {{MC/Nbt|byte|useMsaGamertagsOnly}}: Whether the world is restricted to Microsoft Accounts only (players must be signed in). | ||
** {{ | ** {{MC/Nbt|compound|world_policies}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|long|worldStartCount}}: Counts how many times the game has been closed since the world was created, with its value decreasing by 1 each time. | ||
** {{ | ** {{MC/Nbt|int|WorldVersion}}: {{MC/Info needed}} | ||
** {{ | ** {{MC/Nbt|int|XBLBroadcastIntent}}: The [[Minecraft:multiplayer]] exposure for the Xbox friends system, corresponding to the "Microsoft Account Settings" world setting. 0 is disabled, 1 is "Invite Only," 2 is "Friends Only," and 3 is "Friends of Friends." | ||
</div> | </div> | ||
| Line 362: | Line 362: | ||
== History == | == History == | ||
{{HistoryTable | {{HistoryTable | ||
|{{HistoryLine|pocket alpha}} | |{{MC/HistoryLine|pocket alpha}} | ||
|{{HistoryLine||v0.1.0|Added a raw binary level format.}} | |{{MC/HistoryLine||v0.1.0|Added a raw binary level format.}} | ||
|{{HistoryLine||v0.2.0|level.dat is now a NBT formatted file. | |{{MC/HistoryLine||v0.2.0|level.dat is now a NBT formatted file. | ||
|player.dat information has been moved into level.dat. | |player.dat information has been moved into level.dat. | ||
|Added entities.dat.}} | |Added entities.dat.}} | ||
|{{HistoryLine||v0.3.2|Entities.dat has been extended to store tile entity information.}} | |{{MC/HistoryLine||v0.3.2|Entities.dat has been extended to store tile entity information.}} | ||
|{{HistoryLine||v0.9.0|dev=build 1|Added a new world save format, based on LevelDB 1.17 with Zlib compression support added. Older worlds are automatically converted to the new format when loaded.}} | |{{MC/HistoryLine||v0.9.0|dev=build 1|Added a new world save format, based on LevelDB 1.17 with Zlib compression support added. Older worlds are automatically converted to the new format when loaded.}} | ||
|{{HistoryLine|pocket}} | |{{MC/HistoryLine|pocket}} | ||
|{{HistoryLine||1.0.0|dev=alpha 0.17.0.1|Each sub chunk is now stored separately as a different leveldb key.}} | |{{MC/HistoryLine||1.0.0|dev=alpha 0.17.0.1|Each sub chunk is now stored separately as a different leveldb key.}} | ||
|{{HistoryLine|bedrock}} | |{{MC/HistoryLine|bedrock}} | ||
|{{HistoryLine||1.2.13|dev=?|Subchunks are now palleted.<ref>https://gist.github.com/Tomcc/a96af509e275b1af483b25c543cfbf37#the-new-subchunk-format</ref>}} | |{{MC/HistoryLine||1.2.13|dev=?|Subchunks are now palleted.<ref>https://gist.github.com/Tomcc/a96af509e275b1af483b25c543cfbf37#the-new-subchunk-format</ref>}} | ||
}} | }} | ||
| Line 380: | Line 380: | ||
== References== | == References== | ||
{{ | {{MC/Reflist}} | ||
== Navigation == | == Navigation == | ||
{{Navbox Bedrock Edition}} | {{MC/Navbox Bedrock Edition}} | ||
[[Category:Development]] | [[Category:Development]] | ||
Latest revision as of 19:50, 9 April 2026
|
For the {{{Description}}} of the same name, see [[{{{Destination}}}]]. |
Script error: No such module "Exclusive". Template:Message boxTemplate:Article other
Bedrock Edition uses a modified version of Google's LevelDB, which uses the Zlib compression format for world storage. The world storage files are located in a world file in Minecraft:com.mojang.
LevelDB based format
Mojang variant LevelDB format
Mojang has modified Google's Original LevelDB to add Zlib compression and Windows support. The code is available at https://github.com/Mojang/leveldb, and the building instructions are documented by Tommaso at Template:Tweet.
For a Java implementation of LevelDB + Zlib, see https://github.com/HiveGamesOSS/leveldb-mcpe-java
Google's leveldb library has evolved extensively since Mojang released their version, but the Mojang version still works (as of 2022). The code does require some minor tweaks to compile:
- db/snappy_compressor.cc should refer include <snappy.h> instead of <snappy/snappy.h>
- table/table_test.cc contains two references to snappy that are unresolvable but irrelevant. port::Snappy_Compress and leveldb::SnappyCompressor. If these are simply commented out, the rest compiles and functions properly.
The database is stored in the db/ subdirectory of a Bedrock Edition world. The database path which is passed to the LevelDB API is this directory path, not the path to any file within it. It seems this is also where terrain generation is stored. This is because you can turn an old world infinite by replacing its db folder with one from an infinite world.
Chunk key format
A database key for data regarding a chunk is the concatenation of:
- Two signed 32-bit little-endian integers (x and z in chunk coordinates, respectively),
- An optional third 32-bit little-endian integer (1 for the Nether, 2 for the End, omitted for the Minecraft:Overworld),
- A one-byte tag specifying the type of record represented by the key (see table), and
- (for a "SubChunkPrefix" record) a one-byte subchunk index (from 0 to 15).
Accordingly, such a key may be 9, 10, 13 or 14 bytes long. Not all subchunks necessarily exist for a given chunk.
The "BlockEntity", "Entity" and "PendingTicks" records are represented by a sequence of concatenated root tags in a variant of NBT which stores the lengths and the multi-byte integer types in little-endian format, as opposed to the big-endian format used by
- REDIRECT Template:Edition
Template:Rcat or the original NBT specification.
The value 0 is used in the "Version" record in old style worlds; higher values are used in infinite worlds.
| Tag byte | Name | Structure | Description | ||
|---|---|---|---|---|---|
| Dec | Hex | ASCII | |||
| 43 | 2B | + |
Data3D | Heightmap (256×2 bytes)
Biome data (varying lengths) |
Biomes are stored as palettes similar to blocks. Exactly 25 palettes are written. Biome IDs are written as integers. |
| 44 | 2C | , |
Version | 1 byte | A byte |
| 45 | 2D | - |
Data2D | Heightmap (256×2 bytes)
2D biomes (256×1 bytes) |
Biome IDs are written as 8-bit integers. No longer written since v1.18.0. |
| 46 | 2E | . |
Data2DLegacy | Heightmap (256×2 bytes)
2D biomes (256×4 bytes) |
Each entry of the biome array contains a biome ID in the first byte, and the final 3 bytes are red/green/blue respectively. No longer written since v1.0.0. |
| 47 | 2F | / |
SubChunkPrefix | Subchunk version (1 byte) Version-dependent data | Terrain for a 16×16×16 subchunk |
| 48 | 30 | 0 |
LegacyTerrain | Block IDs (32768 bytes)
Block meta (32768 nibbles) Block sky light (32768 nibbles) Block light (32768 nibbles) Heightmap (256×1 bytes) 2D biomes (256×4 bytes) |
Data ordered in XZY order, unlike Java.
No longer written since v1.0.0. Biomes are IDs plus RGB colours similar to Data2DLegacy. |
| 49 | 31 | 1 |
BlockEntity | List of NBT compound roots | Minecraft:Block entity data (little-endian NBT) |
| 50 | 32 | 2 |
Entity | List of NBT compound roots | Entity data (little-endian NBT) |
| 51 | 33 | 3 |
PendingTicks | NBT compound root | Pending tick data (little-endian NBT) |
| 52 | 34 | 4 |
LegacyBlockExtraData | Entry count (4 bytes)
Entries: Key (4 bytes), Value (2 bytes). |
Array of blocks that appear in the same place as other blocks. Used for grass appearing inside snow layers prior to v1.2.13. No longer written as of v1.2.13. |
| 53 | 35 | 5 |
BiomeState | ||
| 54 | 36 | 6 |
FinalizedState | 4 bytes | A 32-bit little endian integer |
| 55 | 37 | 7 |
ConversionData | No longer used | |
| 56 | 38 | 8 |
BorderBlocks | Education Edition Feature | |
| 57 | 39 | 9 |
HardcodedSpawners | Bounding boxes for structure spawns stored in binary format | |
| 58 | 3A | : |
RandomTicks | NBT compound root | Random tick data (little-endian NBT) |
| 59 | 3B | ; |
Checksums | xxHash checksums of other chunk records. No longer written as of v1.18.0. | |
| 61 | 3D | = |
MetaDataHash | ||
| 61 | 3E | > |
GeneratedPreCavesAndCliffsBlending | Not used | |
| 63 | 3F | ? |
BlendingBiomeHeight | Not used | |
| 64 | 40 | @ |
BlendingData | ||
| 65 | 41 | A |
ActorDigestVersion | ||
| 118 | 76 | v |
LegacyVersion | 1 byte | Moved to 44 in v1.16.100 |
| 119 | 77 | w
|
AABBVolumes | ||
Other keys
There's also the special key ~local_player for an entity data entry that holds the local player entity. The value associated with the ~local_player key is NBT encoded and has only a single compound tag at the root level.
There's also a special key for remote players which consists of two parts. The first part is the prefix "player_" (without the quotes) and the second part is the client ID which is contained in the remote player's clientid.txt file. For example, player_-12345678 would be the key for a remote client with an client ID of -12345678. The value associated with the "player_" prefixed key is NBT encoded and has only a single compound tag at the root level.
There's also a special "game_flatworldlayers" key of length 20 for flat worlds. The value associated with this key is a set of numbers in ASCII text format. An example of a value associated with the "game_flatworldlayers" key is "[7,3,3,2]" where the value length for this example is 9.
There are several keys related to villages. Depending on the dimension, the village key is prefixed with VILLAGE_DIMENSION_[0-9a-f\\-]+_, with DIMENSION being replaced with the dimension's name.
- DWELLERS
- Consists mainly of an entity/mob ID's. Dwellers include villagers, iron golems, and cats.
- INFO
- Includes the village bounding box.
- POI
- Provides a mapping between villagers and their beds, village center (bell) and work station.
- PLAYERS
Other keys start with the following strings
- actorprefix
- digp
- map_
- portals
- schedulerWT
- structuretemplate
- tickingarea
- DynamicProperties
- scoreboard
- Overworld
- Nether
- TheEnd
- AutonomousEntities
- BiomeData
- mobevents
- LevelChunkMetaDataDictionary
- RealmsStoriesData_
- DedicatedServerForcedCorruption
- SST_SALOG
- SST_WORD
- SST_WORD_
An official explanation from Microsoft about how entities (actors) are stored in LevelDB can be found on Microsoft Learn / Minecraft Bedrock Edition.
Sample parsers of Bedrock level-db
- An example implementation of a Bedrock level-db parser can be found in minecraft_mmccoo. This implementation walks the NBTs of all block, entities/mobs, elevations, and village related items.
- A TypeScript implementation can be found on the mcbe-leveldb NPM package.
NBT structures
The following articles document NBT structures of block entity and entity.
level.dat
The level.dat is still in uncompressed NBT format. The file begins with an 8-byte header, consisting of a little-endian 4-byte integer indicating the version of the file, which is currently 10. It is followed by another integer containing the length of the file, minus the header.
NBT Structure
- Template:Nbt/sprite: World data.
- Template:Nbt/sprite abilities: The default permissions for players in the world.
- Template:Nbt/sprite attackmobs: 1 or 0 (true/false) - true if the player can attack mobs.
- Template:Nbt/sprite attackplayers: 1 or 0 (true/false) - true if the player can attack other players.
- Template:Nbt/sprite build: 1 or 0 (true/false) - true if the player can place blocks.
- Template:Nbt/sprite doorsandswitches: 1 or 0 (true/false) - true if the player is able to interact with redstone components.
- Template:Nbt/sprite flying: 1 or 0 (true/false) - true if the player is currently flying.
- Template:Nbt/sprite flySpeed: The flying speed, always 0.05.
- Template:Nbt/sprite instabuild: 1 or 0 (true/false) - true if the player can instantly destroy blocks.
- Template:Nbt/sprite invulnerable: 1 or 0 (true/false) - true if the player is immune to all damage and harmful effects.
- Template:Nbt/sprite lightning: 1 or 0 (true/false) - true if the player was struck by lightning.
- Template:Nbt/sprite mayfly: 1 or 0 (true/false) - true if the player can fly.
- Template:Nbt/sprite mine: 1 or 0 (true/false) - true if the player can destroy blocks.
- Template:Nbt/sprite mute: 1 or 0 (true/false) - true if the player messages cannot be seen by other players.
- Template:Nbt/sprite noclip: 1 or 0 (true/false) - true if the player can phase through blocks.
- Template:Nbt/sprite op: 1 or 0 (true/false) - true if the player has operator commands.
- Template:Nbt/sprite opencontainers: 1 or 0 (true/false) - true if the player is able to open containers.
- Template:Nbt/sprite teleport: 1 or 0 (true/false) - true if the player is allowed to teleport.
- Template:Nbt/sprite verticalFlySpeed: The vertical flight speed, always 1.
<more information needed></more information needed> - Template:Nbt/sprite walkSpeed: The walking speed, always 0.1.
- Template:Nbt/sprite worldbuilder: 1 or 0 (true/false) - true if the player is a world builder. (Removed 1.21.120
<more information needed></more information needed>)
- Template:Nbt/sprite allowdestructiveobjects: The
allowdestructiveobjectsgame rule. <more information needed></more information needed> - Template:Nbt/sprite allowmobs: The
allowmobsgame rule. <more information needed></more information needed> - Template:Nbt/sprite baseGameVersion: The version of Minecraft that is the maximum version to load resources from. Eg. setting this to
1.16.0removes any features that were added after version1.16.0. - Template:Nbt/sprite BiomeOverride: Makes the world into a single biome world and the biome set here is the biome of this single biome world.
- Template:Nbt/sprite bonusChestEnabled: 1 or 0 (true/false) - true if the bonus chest is enabled.
- Template:Nbt/sprite bonusChestSpawned: 1 or 0 (true/false) - true if the bonus chest has been placed in the world. Turning this to false spawns another bonus chest near the spawn coordinates.
- Template:Nbt/sprite codebuilder:
<more information needed></more information needed> - Template:Nbt/sprite CenterMapsToOrigin: 1 or 0 (true/false) - true if the maps should be on a grid or centered to exactly where they are created. Default to 0.
- Template:Nbt/sprite cheatsEnabled: 1 or 0 (true/false) - true if cheats are on.
- Template:Nbt/sprite commandblockoutput: The
commandblockoutputgame rule. - Template:Nbt/sprite commandblocksenabled: The
commandblocksenabledgame rule. - Template:Nbt/sprite commandsEnabled:
<more information needed></more information needed> - Template:Nbt/sprite ConfirmedPlatformLockedContent: 1 or 0 (true/false) - tells if the world has Platform-Specific texture packs or content. Used to prevent cross play in specific worlds, that use assets allowed only on specific consoles.
- Template:Nbt/sprite currentTick:
<more information needed></more information needed> - Template:Nbt/sprite daylightCycle:
<more information needed></more information needed> - Template:Nbt/sprite Difficulty: The current difficulty setting. 0 is Peaceful, 1 is Easy, 2 is Normal, and 3 is Hard.
- Template:Nbt/sprite Dimension: The dimension the player is in. 0 is the Overworld, 1 is the Nether, and 2 is the End.
<more information needed></more information needed> - Template:Nbt/sprite dodaylightcycle: The
dodaylightcyclegame rule. - Template:Nbt/sprite doentitiydrops: The
doentitiydropsgame rule. - Template:Nbt/sprite dofiretick: The
dofiretickgame rule. - Template:Nbt/sprite doimmediaterespawn: The
doimmediaterespawngame rule. - Template:Nbt/sprite doinsomnia: The
doinsomniagame rule. - Template:Nbt/sprite dolimitedcrafting: The
dolimitedcraftinggame rule. - Template:Nbt/sprite domobloot: The
domoblootgame rule. - Template:Nbt/sprite domobspawning: The
domobspawninggame rule. - Template:Nbt/sprite dotiledrops: The
dotiledropsgame rule. - Template:Nbt/sprite doweathercycle: The
doweathercyclegame rule. - Template:Nbt/sprite drowningdamage: The
drowningdamagegame rule. - Template:Nbt/sprite editorWorldType: The Editor world type. 0 is World, 1 is Project.
- Template:Nbt/sprite educationFeaturesEnabled: Enables the
chemistryresource and behavior packs for the world, containing some features from Minecraft:Minecraft Education. - Template:Nbt/sprite EducationOid: A Minecraft:UUID.
<more information needed></more information needed> - Template:Nbt/sprite EducationProductId:
<more information needed></more information needed> - Template:Nbt/sprite eduOffer: Marks a world as a Minecraft:Minecraft Education world (worlds with this set to 1 do not open on Minecraft:Bedrock Edition!).
- Template:Nbt/sprite eduSharedResource
- Template:Nbt/sprite buttonName: Unused in Bedrock Edition, but is used in Education Edition as part of the Resource Link feature on the Pause Screen. It defines the Resource Link Button Text.
- Template:Nbt/sprite linkUri: Unused in Bedrock Edition, but is used in Education Edition as part of the Resource Link feature on the Pause Screen. It defines what link opens upon clicking the Resource Link Button.
- Template:Nbt/sprite experiments
- Template:Nbt/sprite experiments_ever_used: 1 or 0 (true/false) - true if the world is locked on experimental gameplay.
- Template:Nbt/sprite saved_with_toggled_experiments: 1 or 0 (true/false) - true if the world has been saved with experiments on before.
- ... Additional bytes for each experiment that Minecraft has/had.
- Template:Nbt/sprite falldamage: The
falldamagegame rule. - Template:Nbt/sprite firedamage: The
firedamagegame rule. - Template:Nbt/sprite FlatWorldLayers: JSON that controls generation of flat worlds. The
block_layersarray must contain at least 2 valid blocks, otherwise the world will generate as void. Default is{"biome_id":1,"block_layers":[{"block_name":"minecraft:bedrock","count":1},{"block_name":"minecraft:dirt","count":2},{"block_name":"minecraft:grass_block","count":1}],"encoding_version":6,"preset_id":"ClassicFlat","structure_options":null,"world_version":"version.post_1_18"}. - Template:Nbt/sprite globalmute: The
globalmutegame rule. <more information needed></more information needed> - Template:Nbt/sprite ForceGameType: 1 or 0 (true/false) - true if force the player into the game mode defined in
GameType. - Template:Nbt/sprite freezedamage: The
freezedamagegame rule. - Template:Nbt/sprite functioncommandlimit: The
functioncommandlimitgame rule. - Template:Nbt/sprite GameType: The default game mode of the player. 0 is Survival, 1 is Creative, 2 is Adventure, 5 is Default, and 6 is Spectator.
- Template:Nbt/sprite Generator: The world type. 0 is Minecraft:Old, 1 is Infinite, 2 is Flat, 5 is Void, and others are Infinite with the bedrock layer at 0.
- Template:Nbt/sprite hasBeenLoadedInCreative: Whether the world has achievements locked. Set to 1 if the default game mode is set to Creative, if cheats have been enabled, or if a behavior pack has been equipped.
- Template:Nbt/sprite hasLockedBehaviorPack:
<more information needed></more information needed> - Template:Nbt/sprite hasLockedResourcePack:
<more information needed></more information needed> - Template:Nbt/sprite HasUncompleteWorldFileOnDisk:
<more information needed></more information needed> - Template:Nbt/sprite immutableWorld: Is read-only.
- Template:Nbt/sprite InventoryVersion:
<more information needed></more information needed> - Template:Nbt/sprite isCreatedInEditor: 1 or 0 (true/false) - true if it was created from the Minecraft:Bedrock Editor.
- Template:Nbt/sprite isExportedFromEditor: 1 or 0 (true/false) - true if exported from the Bedrock Editor.
- Template:Nbt/sprite isFromLockedTemplate: 1 or 0 (true/false) - true if the world is created from a world template where the world options were intended not to be modified.
- Template:Nbt/sprite isFromWorldTemplate: 1 or 0 (true/false) - true if the world is created from a world template.
- Template:Nbt/sprite IsHardcore: 1 or 0 (true/false) - true if the world is in Hardcore mode.
- Template:Nbt/sprite isRandomSeedAllowed: 1 or 0 (true/false) - true if the world template generates with a new, random seed.
- Template:Nbt/sprite IsSingleUseWorld: 1 or 0 (true/false) - (unused) may cause world to not save, or delete after use. Seems to default back to false when a world is loaded.
- Template:Nbt/sprite isWorldTemplateOptionLocked: 1 or 0 (true/false) - true if the world options cannot be modified until the user accepts that they are changing the map.
- Template:Nbt/sprite keepinventory: The
keepinventorygame rule. - Template:Nbt/sprite LANBroadcast: Whether the world has been opened with the "Visible to LAN players" world setting enabled.
- Template:Nbt/sprite LANBroadcastIntent: Whether the "Visible to LAN players" world toggle is enabled.
- Template:Nbt/sprite lastOpenedWithVersion: Five Template:Nbt/sprite ints representing the last version with which the world was opened. Eg. for the beta/Preview 1.20.30.22 the version is
1 20 30 22 1. - Template:Nbt/sprite LastPlayed: Stores a timestamp of when the world was last played as the number of seconds since the epoch (1/1/1970).
- Template:Nbt/sprite LevelName: Specifies the name of the world.
- Template:Nbt/sprite lightningLevel: Related to the current strength of thunderstorms.
<more information needed></more information needed> - Template:Nbt/sprite lightningTime:
<more information needed></more information needed>Related to the weather cycle regarding thunderstorms. - Template:Nbt/sprite LimitedWorldOriginX: The X coordinate where limited (old) world generation started.
- Template:Nbt/sprite LimitedWorldOriginY: The Y coordinate where limited (old) world generation started.
- Template:Nbt/sprite LimitedWorldOriginZ: The Z coordinate where limited (old) world generation started.
- Template:Nbt/sprite LimitedWorldWidth: The width (in chunks) of the borders surrounding the (old) world generation. Defaults to 16.
- Template:Nbt/sprite LimitedWorldDepth: The depth (in chunks) of the borders surrounding the (old) world generation. Defaults to 16.
- Template:Nbt/sprite locatorbar: The
locatorbargame rule. - Template:Nbt/sprite maxcommandchainlength: The
maxcommandchainlengthgame rule. - Template:Nbt/sprite MinimumCompatibleClientVersion: Five Template:Nbt/sprite ints representing the minimum compatible client version that is needed to open the world. Eg. for the beta/Preview 1.20.30.22 the minimum compatible version is
1 20 30 0 0. - Template:Nbt/sprite mobgriefing: The
mobgriefinggame rule. - Template:Nbt/sprite MultiplayerGame: Whether the world has been opened with the "Multiplayer Game" world setting enabled.
- Template:Nbt/sprite MultiplayerGameIntent: Whether the "Multiplayer Game" world toggle is enabled.
- Template:Nbt/sprite naturalregeneration: The
naturalregenerationgame rule. - Template:Nbt/sprite NetherScale: Defaults to 8. This is used to tell the game how many Overworld blocks go into one nether block (X blocks in the nether = 1 block in the overworld).
- Template:Nbt/sprite NetworkVersion: The protocol version of the version the world was last played on.
- Template:Nbt/sprite permissionsLevel: What permissions a player defaults to, when joining a world.
- Template:Nbt/sprite Platform: Seems to store the platform that the level is created on. Currently observed value is 2.
- Template:Nbt/sprite PlatformBroadcastIntent:
<more information needed></more information needed> - Template:Nbt/sprite PlayerHasDied: 1 or 0 (true/false) - true if a player has died.
<more information needed></more information needed> - Template:Nbt/sprite playerPermissionsLevel: What permissions a player has.
- Template:Nbt/sprite playersleepingpercentage: The
playersleepingpercentagegame rule, values above 100 mean that night will never turn into day. - Template:Nbt/sprite prid: The UUID of the premium world template this world was created with. Used for Marketplace worlds.
<more information needed></more information needed> - Template:Nbt/sprite projectilescanbreakblocks: The
projectilescanbreakblocksgame rule. - Template:Nbt/sprite pvp: The
pvpgame rule. - Template:Nbt/sprite rainLevel: Related to the current strength of rain.
<more information needed></more information needed> - Template:Nbt/sprite rainTime: Related to the weather cycle regarding rain.
<more information needed></more information needed> - Template:Nbt/sprite RandomSeed: Level seed.
- Template:Nbt/sprite randomtickspeed: The
randomtickspeedgame rule. - Template:Nbt/sprite recipesunlock: The
recipesunlockgame rule. - Template:Nbt/sprite requiresCopiedPackRemovalCheck:
<more information needed></more information needed> - Template:Nbt/sprite respawnblocksexplode: The
respawnblocksexplodegame rule. - Template:Nbt/sprite sendcommandfeedback: The
sendcommandfeedbackgame rule. - Template:Nbt/sprite serverChunkTickRange: Simulation distance.
<more information needed></more information needed> - Template:Nbt/sprite showbordereffect: The
showbordereffectgame rule. - Template:Nbt/sprite showcoordinates: The
showcoordinatesgame rule. - Template:Nbt/sprite showdaysplayed: The
showdaysplayedgame rule. - Template:Nbt/sprite showdeathmessages: The
showdeathmessagesgame rule. - Template:Nbt/sprite showrecipemessages: The
showrecipemessagesgame rule. - Template:Nbt/sprite showtags: The
showtagsgame rule. - Template:Nbt/sprite spawnMobs: 1 or 0 (true/false) - true if mobs can spawn.
- Template:Nbt/sprite spawnradius: The
spawnradiusgame rule. - Template:Nbt/sprite SpawnV1Villagers: Spawn pre-1.10.0 villagers.
- Template:Nbt/sprite SpawnX: The X coordinate of the player's spawn position. Defaults to 0.
- Template:Nbt/sprite SpawnY: The Y coordinate of the player's spawn position. Defaults to 64.
- Template:Nbt/sprite SpawnZ: The Z coordinate of the player's spawn position. Defaults to 0.
- Template:Nbt/sprite startWithMapEnabled: 1 or 0 (true/false) - true if new players spawn with a locator map.
- Template:Nbt/sprite StorageVersion: Version of Bedrock Edition Storage Tool, currently is 10.
- Template:Nbt/sprite texturePacksRequired: 1 or 0 (true/false) - true if the user must download the texture packs applied to the world to join.
- Template:Nbt/sprite Time: Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 24000 ticks per Minecraft daylight cycle, making the full cycle length 20 minutes. 0 is the start of daytime, 12000 is the start of sunset, 13800 is the start of nighttime, 22200 is the start of sunrise, and 24000 is daytime again. The value stored in level.dat is always increasing and can be larger than 24000, but the "time of day" is always modulo 24000 of the "Time" field value.
- Template:Nbt/sprite tntexplodes: The
tntexplodesgame rule. - Template:Nbt/sprite tntexplosiondropdecay: The
tntexplosiondropdecaygame rule. - Template:Nbt/sprite useMsaGamertagsOnly: Whether the world is restricted to Microsoft Accounts only (players must be signed in).
- Template:Nbt/sprite world_policies:
<more information needed></more information needed> - Template:Nbt/sprite worldStartCount: Counts how many times the game has been closed since the world was created, with its value decreasing by 1 each time.
- Template:Nbt/sprite WorldVersion:
<more information needed></more information needed> - Template:Nbt/sprite XBLBroadcastIntent: The Minecraft:multiplayer exposure for the Xbox friends system, corresponding to the "Microsoft Account Settings" world setting. 0 is disabled, 1 is "Invite Only," 2 is "Friends Only," and 3 is "Friends of Friends."
- Template:Nbt/sprite abilities: The default permissions for players in the world.
LOG
The LOG files are located at the /db path of a level, and are part of the leveldb format, used in between compaction of the LDB files. It is similar to a Log file for a program. The format is:
YYYY/MM/DD-Hour/Minute/Second.StepName "Info"
Example:
2014/07/24-22:20:08.400488 4a3638 Recovering log #3
History
See also
- Java Edition level format
- Java Edition chunk format
References
<references group="">
</references>
de:Spielstand-Speicherung (Bedrock) es:Formato de nivel de Bedrock Edition ja:Levelフォーマット/Bedrock Edition nl:Bedrockeditie level format pt:Formato de nível da Edição Bedrock zh:基岩版存档格式