{{exclusive|java}} Each level is its own folder. A level folder is often identified by having a [[#level.dat_format|level.dat]] file, along with other subfolders to store the maps and regions of the level. == Folders == === Current ===
level.dat
is backed up to level.dat_old
.
It is an [[NBT]] file with this structure:
custom:boss
)
*****{{nbt|list|Players}}: A list of players that may see this boss bar.
******{{nbt|int-array|UUID}}: The player's [http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html Universally Unique IDentifier].
*****{{nbt|string|Color}}: ID of the color of the bossbar. Also sets the color of the display text of the bossbar, provided that the display text does not explicitly define a color for itself. See [[Formatting codes#Color codes|color codes]] for accepted values.
*****{{nbt|boolean|CreateWorldFog}}: 1 or 0 (true/false) - If the bossbar should create fog.
*****{{nbt|boolean|DarkenScreen}}: 1 or 0 (true/false) - If the bossbar should darken the sky.
*****{{nbt|int|Max}}: The maximum health of the bossbar.
*****{{nbt|int|Value}}: The current health of the bossbar.
*****{{nbt|string|Name}}: The display name of the bossbar as a [[Commands#Raw JSON text|JSON text component]].
*****{{nbt|string|Overlay}}: The ID of the overlay to be shown over the health bar. Accepted values are: progress
, notched_6
, notched_10
, notched_12
, and notched_20
.
*****{{nbt|boolean|PlayBossMusic}}: 1 or 0 (true/false) - If the bossbar should initiate boss music.
*****{{nbt|boolean|Visible}}: 1 or 0 (true/false) - If the bossbar should be visible to the listed players.
***{{nbt|compound|DataPacks}}: Options for data packs.
****{{nbt|list|Disabled}}: List of disabled data packs.
*****{{nbt|string}}: A single data pack.
****{{nbt|list|Enabled}}: List of enabled data packs. By default, this is populated with a single string "vanilla".
*****{{nbt|string}}: A single data pack.
***{{nbt|int|DataVersion}}: An integer displaying the [[data version]].
***{{nbt|long|DayTime}}: The time of day. 0 is sunrise, 6000 is mid day, 12000 is sunset, 18000 is mid night, 24000 is the next day's 0. This value keeps counting past 24000 and does not reset to 0.
***{{nbt|byte|Difficulty}}: The current difficulty setting. 0 is Peaceful, 1 is Easy, 2 is Normal, and 3 is Hard. Defaults to 2.
***{{nbt|boolean|DifficultyLocked}}: 1 or 0 (true/false) - True if the difficulty has been locked. Defaults to 0.
***{{nbt|compound|DimensionData}}: This tag contains level data specific to certain dimensions.
****{{nbt|compound|1}}: Data for the End.
*****{{nbt|compound|DragonFight}}: Data for the ender dragon fight. Appears only after the End is entered.
******{{nbt|compound|ExitPortalLocation}}: Location of the End's exit portal that the ender dragon flies to upon its death.
*******{{nbt|byte|X}}: The X coordinate of the portal.
*******{{nbt|byte|Y}}: The Y coordinate of the portal.
*******{{nbt|byte|Z}}: The Z coordinate of the portal.
******{{nbt|list|Gateways}}: Contains a list of locations of the [[end gateway portal]]s that ''haven't'' been spawned.
*******{{nbt|int|}}: The angle of a future gateway, from 0 to 19. 0 is east of the exit portal, and numbers increase clockwise.
******{{nbt|boolean|DragonKilled}}: 1 or 0 (true/false) - If the dragon is currently alive.
******{{nbt|long|DragonUUIDLeast}}: The least significant bits of the current ender dragon's [http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html Universally Unique IDentifier]. This is joined with DragonUUIDMost to form the dragon's unique ID.
******{{nbt|long|DragonUUIDMost}}: The most significant bits of the current ender dragon's [http://docs.oracle.com/javase/6/docs/api/java/util/UUID.html Universally Unique IDentifier]. This is joined with DragonUUIDLeast to form the dragon's unique ID.
******{{nbt|boolean|PreviouslyKilled}}: 1 or 0 (true/false) - If the ender dragon has ever been defeated. Used to determine how much XP is given by dragon.
***{{Nbt|list|enabled_features}}: List of experimental features enabled for this world. Doesn't appear if there are no experimental features enabled.
****{{Nbt|string}}: A single experimental feature.
***{{nbt|compound|GameRules}}: The [[Commands/gamerule|gamerules]] used in the world.
****{{nbt|string|Rule name}}: The value for the given rule. This is always an NBT string, which is either true
or false
for the majority of rules (with it being a number for some other rules, and any arbitrary string for a user-defined rule)
***{{nbt|compound|WorldGenSettings}}: Used in 1.16, the generation settings for each dimension.
****{{nbt|boolean|bonus_chest}}: 1 or 0 (true/false) - Used to determine if the bonus chest should appear near the spawn point when a world is first entered. Available only in singleplayer.
****{{nbt|long|seed}}: The numerical seed of the world.
****{{nbt|boolean|generate_features}}: 1 or 0 (true/false) - Whether structures should be generated or not.
****{{nbt|compound|dimensions}}: Contains all the dimensions.
*****{{nbt|compound|''Dimension ID''}}: The root for [[Custom dimension|generator settings]].
***{{nbt|int|GameType}}: The default game mode for the singleplayer player when they initially spawn. 0 is [[Survival]], 1 is [[Creative]], 2 is [[Adventure]], 3 is [[Spectator]]. Note: singleplayer worlds do not use this field to save which game mode the player is currently in.
***{{nbt|string|generatorName}}: Used in 1.15 and below. The name of the generator; {{cd|default}}, {{cd|flat}}, {{cd|largeBiomes}}, {{cd|amplified}}, {{cd|buffet}}, {{cd|debug_all_block_states}} or {{cd|default_1_1}}. Not case sensitive, but always written in the case here. The last one can exist only if the file was edited. It is a variation of the default generation. It can also be {{cd|customized}} if it is a customized world from before 1.13. In this case the world becomes {{cd|default}} if opened using 1.13 or newer.
***{{nbt|compound|generatorOptions}}: Used in 1.15 and below. Used in [[buffet]], [[superflat]], and [[old customized]] worlds. Format below.
***{{nbt|int|generatorVersion}}: Used in 1.15 and below. The version of the level generator. The effects of changing this are unknown, but values other than 0 have been observed.
***{{nbt|boolean|hardcore}}: 1 or 0 (true/false) - If true, the player respawns in [[Spectator]] on death in singleplayer. Affects all three game modes.
***{{nbt|boolean|initialized}}: 1 or 0 (true/false) - Normally true after a world has been initialized properly after creation. If the initial simulation was canceled somehow, this can be false and the world is re-initialized on next load.
***{{nbt|long|LastPlayed}}: The Unix time in milliseconds when the level was last loaded.
***{{nbt|string|LevelName}}: The name of the level.
***{{nbt|boolean|MapFeatures}}: 1 or 0 (true/false) - true if the map generator should place structures such as villages, strongholds, and mineshafts. Defaults to 1. Always 1 if the world type is Customized.
***{{nbt|compound|Player}}: The state of the singleplayer player. This overrides the minecraft:vanilla_layered
.
****{{nbt|list|biomes}}:
*****{{nbt|string}}: A [[Java Edition data values#Biomes|biome ID]]. If this or the biome source ID is omitted or invalid, the code assumes minecraft:ocean
.
****{{nbt|byte|size}}: The size of the biomes. Only used when the biome source ID is minecraft:checkerboard
. The biome squares have sides of 2
(which can be < 1) [[chunk]]s. If no value is entered, the code assumes 2
.
***{{nbt|string|type}}: An applicable biome source ID. It determines how the biomes are distributed. Cannot be selected in-game and defaults to minecraft:fixed
for unmodified [[world]]s.
**{{nbt|compound|chunk_generator}}:
***{{nbt|compound|options}}:
****{{nbt|string|default_block}}: A [[Java Edition data values#Blocks|block ID]], by default minecraft:stone
.
****{{nbt|string|default_fluid}}: A [[Java Edition data values#Fluids|fluid ID]], by default minecraft:water
.
***{{nbt|string|type}}: An applicable [[Java Edition data values#Chunk generators|chunk generator ID]]. It determines the overall structure of the dimension. If this is omitted or invalid, the code assumes minecraft:surface
.
decoration
. If parameters are set, for example village(distance=9 size=1)
, then the compound contains this information.
****{{nbt|string|minecraft:meeting
, (block minecraft:bell) which has a limit of 32. Poi entries which are not for villager interaction such as beehives, nether portals, lighting rods, etc., have a max ticket count of zero (0) and therefore always have a '''free_tickets''' of zero as well.
*******{{nbt|string|type}}: Type of the point, for example: minecraft:home
, minecraft:meeting
, minecraft:butcher
, minecraft:armorer
, etc.
**{{nbt|int|DataVersion}}: An integer displaying the [[data version]].