Minecraft Wiki
Advertisement

Dieser und weitere Artikel über die Dateiformate sind in Arbeit, bitte die Redlinks nicht löschen, sondern lassen.

In Minecraft 1.0 liegen die Dateien einer Welt in einem eigenen Ordner. Ein Welt-Ordner wird bestimmt durch die Datei level.dat, neben weiteren Unterordnern die die Karten und Regionsdaten der Welt beinhalten.

Welt-Ordner besitzen immer die fett dargestellten Dateien, die kursiv dargestellten sind nicht immer vorhanden.

Relative Path Article Description
/level.dat (s.u.) Globale Information der Welt
/level.dat_mcr - Backup der Datei level.dat vor der Konvertierung vón MCRegion nach Anvil.
/level.dat_old - Backup der Datei level.dat vor der Konvertierung von Alpha Level Format nach MCRegion oder Anvil.
/session.lock (s.u.) Simpler Lock für den schreibenden Zugriff auf die Weltdaten
/players/<player>.dat Player.dat Format Speichert die Zustände der jeweiligen Spieler dieser Welt.
/data/idcounts.dat
/data/map_<#>.dat
Map Item Format Speichert die Kartendaten der herstellbaren Karte.
/data/villages.dat villages.dat Format Speichert Informationen über die Dörfer der Welt.
/region/ - Speichert die Region-Dateien der Oberwelt.
/DIM-1/ - Speichert die Region-Dateien des Nether.
/DIM1/ - Speichert die Region-Dateien des Ends.
/region/r.<#>.<#>.mca
/DIM-1/r.<#>.<#>.mca
/DIM1/r.<#>.<#>.mca
Anvil file format Einzelnen Region files.
/region/r.<#>.<#>.mcr
/DIM-1/r.<#>.<#>.mcr
/DIM1/r.<#>.<#>.mcr
Region file format Backups der Region-Datien vor der Konvertierung von MCRegion nach Anvil.
/<#>/<#>/c.<#>.<#>.dat Alpha Level Format Backups der Chunk-Datien vor der Konvertierung voe Alpha level format nach MCRegion.

level.dat-Format

Die Datei level.dat enthält globale Informationen der Welt wie z.B. die Tageszeit, die Spieler, der benutzte Welt-Generator, den Seed. Die Datei ist im NBT mit dieser Struktur_

  • Vorlage:Nbt The root tag.
    • Vorlage:Nbt: This tag contains all the level data.
      • Vorlage:Nbt: The NBT version of the level, 19133.
      • Vorlage:Nbt: 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 will be re-initialized on next load.
      • Vorlage:Nbt: The name of the level.
      • Vorlage:Nbt: The name of the generator; "default", "flat", or "largeBiomes". Not case sensitive, but always written in the case here.
      • Vorlage:Nbt: The version of the level generator. The effects of changing this are unknown, but values other than 0 have been observed.
      • Vorlage:Nbt: The random level seed used to generate consistent terrain.
      • Vorlage:Nbt: 1 or 0 (true/false) - true if the map generator should place structures such as villages, strongholds, and mineshafts.
      • Vorlage:Nbt: The Unix time when the level was last loaded.
      • Vorlage:Nbt: The estimated size in bytes of the level. Currently not modified or used by Minecraft, but was previously.
      • Vorlage:Nbt: 1 or 0 (true/false) - true if cheats are enabled.
      • Vorlage:Nbt: 1 or 0 (true/false) - true if the player must delete their world on death in singleplayer. Affects all three game modes.
      • Vorlage:Nbt: The default game mode for the singleplayer player when they spawn or respawn. 0 is Survival-Modus, 1 is Creative-Modus, 2 is Adventure-Modus. Note: the singleplayer player does not use this field to save which game mode they are currently in.
      • Vorlage:Nbt: The number of ticks since the start of the level.
      • Vorlage:Nbt: 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.
      • Vorlage:Nbt: The X coordinate of the world spawn.
      • Vorlage:Nbt: The Y coordinate of the world spawn.
      • Vorlage:Nbt: The Z coordinate of the world spawn.
      • Vorlage:Nbt: 1 or 0 (true/false) - true if the level is currently experiencing rain, snow, and cloud cover.
      • Vorlage:Nbt: The number of ticks before "raining" is toggled and this value gets set to another random value.
      • Vorlage:Nbt: 1 or 0 (true/false) - true if the rain/snow/cloud cover is a lightning storm and dark enough for mobs to spawn under the sky.
      • Vorlage:Nbt: The number of ticks before "thundering" is toggled and this value gets set to another random value.
      • Vorlage:Nbt: The state of the Singleplayer player. This overrides the <player>.dat file with the same name as the Singleplayer player. This is only saved by Servers if it already exists, otherwise it is not saved for server worlds. See Player.dat Format.
      • Vorlage:Nbt: The game rules. Each rule is a string that is either "true" or "false".
        • Vorlage:Nbt: Whether to spread or remove fire. True by default.
        • Vorlage:Nbt: Whether mobs should drop loot when killed. True by default.
        • Vorlage:Nbt: Whether mobs should spawn naturally. True by default.
        • Vorlage:Nbt: Whether breaking blocks should drop the block's item drop. True by default.
        • Vorlage:Nbt: Whether players keep their inventory after they die. False by default.
        • Vorlage:Nbt: Whether mobs can destroy blocks (creeper explosions, zombies breaking doors, etc). True by default.

session.lock Format

This file contains the timestamp of when the level was last accessed. The file contains a single 64-bit integer in big endian format, which is the timestamp, stored as the number of milliseconds elapsed since 1970, in UTC.

Unlike typical lock files, this file ensures that the last program to access the level is that one that has read and write access. The process goes something like this:

  1. Program opens session.lock
  2. Program writes timestamp to session.lock
  3. Program monitors session.lock for changes
  4. If the contents of session.lock change, program aborts and gives up its lock on the level.

Minecraft can sometimes try to hold the lock on a level even after the player has started playing a different level, and this can cause strange behavior. It is recommended to ensure that Minecraft is closed before trying to acquire a lock on a level.

Vorlage:Minecraft

Advertisement