1082
ediciones
Cambios
sin resumen de edición
{{Construcción}}
{{about|[[Minecraft Alpha]] 1.2.6|[[Minecraft 1.0]]|Level Format}}
== World folder structure Estructura del mundo en carpeta ==An Alpha level is actually a single folder containing at least one file named '''levelEl nivel alfa es una única carpeta que contiene al menos un archivo llamado “level.dat'''dat” y un archivo llamado “sesión. There is also a [[#session.lock Format|session.lock]] file to make sure only one lock” que asegura que solo un Minecraft opens the level at onceabra ese nivel por vez.
{| class="wikitable"
! ID !! Folder !! Dimension
|-
| 0 || <code>saves/[World]/</code> || Normal world Mundo normal (Overworld), always stored in the world folder without siempre es guardado en la carpeta <code>DIM</code>
|-
| -1 || <code>saves/[World]/DIM-1/</code> || [[The El Nether]], added with the [[añadido en la Actualizacion de Halloween Update]]
|}
=== sessionFormato de sesión.lock Format ===sessionSession.lock contains the timestamp of when the world was last touchedcontiene registro de tiempo de la última vez que el mundo a sido alterado. The file is eight El archivo tiene 8 bytes long, and contains a single de largo y contiene una única integral firmada de 64-bit signed integer in big bits en formato endian format. The value of this integer is the timestampEl valor de esta integral corresponde al registro de tiempo, stored as the number of milliseconds elapsed since que representa el numero de milisegundos transcurridos desde 1970, in en UTC.
# program opens sessionEl programa abre sesión.lock.# program writes timestamp to sessionEl programa crea el registro de tiempo en sesión.lock.# program monitors sessionEl programa monitorea sesión.lock for changesen busca de cambios.# if the contents of sessionSi los contenidos de sesión.lock changecambian, program aborts and gives up its lock on the worldel programa aborta y abandona el bloqueo en el mundo.
=== level.dat Format ===
<div class="treeview">
* {{nbt|compound}} The root tagLa etiqueta raíz.** {{nbt|compound|Data}}: Global level dataInformación global.*** {{nbt|long|LastPlayed}}: Stores the Guarda el registro de tiempo Unix time stamp (in milliseconds) when the player saved the gamede la ultima vez que el jugador grabo la partida.*** {{nbt|long|SizeOnDisk}}: Estimated size of the entire world in Es el tamaño estimado del mundo entero en bytes.*** {{nbt|long|RandomSeed}}: Random number providing the Random Seed for the terrainNumero aleatorio (o escogido por el jugador) que es usada para la generación del terreno.*** {{nbt|int|SpawnX}}: Coordenada X coordinate of the level's spawn positionde la posición del Spawn del mundo.*** {{nbt|int|SpawnY}}: Y coordinate of the level's spawn positionCoordenada X de la posición del Spawn del mundo.*** {{nbt|int|SpawnZ}}: Z coordinate of the level's spawn positionCoordenada X de la posición del Spawn del mundo.*** {{nbt|long|Time}}: Stores the current "time of day" in Guarda el ultimo “tiempo del dia” en ticks. There are Cada 20 ticks per real-life secondcorresponde a 1 segundo, and y 24000 ticks per Minecraft [[daycorresponden a un Ciclo de día/night cycle]]noche, making the full cycle length haciendo que este ciclo dure 20 minutesminutos. Habran transcurrido 0 is the start of [[Day/night cycle#Daytime|daytime]]ticks al inicio del dia, 12000 is the start of [[Day/night cycle#Sunset/Dusk|sunset]]en el atardecer, 13800 is the start of [[Day/night cycle#Nighttime|nighttime]], correspondera al anochecer y 22200 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and el comienzo del amanecer y por ultimo 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 valuees el inicio del siguiente día e inmediatamente empieza un nuevo clico en 0 ticks.*** {{nbt|compound|Player}}: The [[El jugador en Singleplayer]] player for the level.**** {{nbt|int|Dimension}}: The dimension the player is in. La dimensión en la cual el jugador se encuentra, 0 is para el mundo normal [[The Overworld]], and y -1 is para [[The el Nether]].**** {{nbt|list|Pos}}: List of 3 TAG_Doubles for the Lista de las coordenadas X, Y, and y Z position of the playerdonde se encuentra el jugador.**** {{nbt|list|Rotation}}: List of 2 TAG_Floats for the Yaw and Pitch of the player's viewLista de la rotación en las coordenadas Y y Z.**** {{nbt|list|Motion}}: List of 3 TAG_Doubles for the Lista que abarca el movimiento de los ejes X, Y, and y Z motion in meters per tick.**** {{nbt|byte|OnGround}}: 1 or o 0 (trueverdadero/falsefalso) - true if the player is on the ground Es Verdadero si el jugador está pisando suelo.**** {{nbt|float|FallDistance}}: How far the player has fallenDurante cuánto tiempo el jugador a estado cayendo.**** {{nbt|short|Health}}: The number of hit points the player has. La cantidad de vida que conserva el jugador, representada en hitpoints, donde 20 is hitpoints son 10 heartscorazones.**** {{nbt|short|AttackTime}}: Number of ticks the player is immune to attacks.Tiempo en el que el jugador es inmune a ser atacado**** {{nbt|short|HurtTime}}: Number of Numero de ticks the player is red from being attackeden los que el jugador se muestra rojo por haber sido atacado.**** {{nbt|short|DeathTime}}: Number of Numero de ticks the player has been dead for - used for controlling the death animationen los que el jugador a estado muerto. (Usado para controlar la animación de muerte).**** {{nbt|short|Air}}: The number of El número de ticks before the player starts to drownque le faltan al jugador para ahogarse. Starts at Inicia en 300.**** {{nbt|short|Fire}}: When negative, the number of Cuando este valor esta negativo representa el número de ticks before the player can catch on fireque han pasado para que el jugador pueda volver a ser incendiado. When positiveCuando positivo, the number of el número de ticks before the fire is extinguishedque le faltan para que el fuego se extinga.**** {{nbt|int|Score}}: The player's scoreEl puntaje del jugador. The score was never utilized in Este valor nunca fue utilizado en la versión Alpha or even betao en la Beta, so this value is irrelevanteste valor es irrelevante.**** {{nbt|list|Inventory}}: List of TAG_Compounds representing the items in the player's inventoryLista de conjuntos de Tag’s que representan los ítem en el inventario del jugador.***** {{nbt|compound}} An inventory itemUn ítem en el inventario.****** {{nbt|byte|Slot}}: The [[Data Values#Inventory_Slot_Number|Slot]] the item is inLa casilla en la cual se encuentra el ítem.****** {{nbt|short|id}}: The Item La [[Data Values#IDs|ID]]del ítem.****** {{nbt|short|Damage}}: The item's [[Data Values#Data|data]] valueEl valor específico del ítem, or damage value for toolso el valor de daño para herramientas.
****** {{nbt|short|Count}}: The number of this item in the stack. Range -128 to 127. Values less than 2 are not displayed in-game.
</div>
=== Formato de Chunk Format ===Chunk filesLos archivos de chunk, as described aboveantes descritos arriba, are son archivos comprimidos en GZip'd [[NBT Format|en formato NBT]] files. They have this structureTienen la siguiente estructura:
<div class="treeview">
* {{nbt|compound}} The root tagLa etiqueta raíz.** {{nbt|compound|Level}}: The level data in this Los datos de nivel en este chunk.*** {{nbt|int|xPos}}: The La coordenada X de este chunk coordinate.*** {{nbt|int|zPos}}: The La coordenada Z de este chunk coordinate.*** {{nbt|byte|TerrainPopulated}}: 1 or o 0 (trueVerdadero/falseFalso) - true if Minecraft Alpha has generated special features in this El valor es verdaero si el chunk such as Dungeons and Cave systemsestá ocupado por estructuras generadas como Calabozos y sistemas de cavernas.*** {{nbt|long|LastUpdate}}: The El tick when the de la última vez que el chunk as last updatedfue actualizado.*** {{nbt|byte-array|Blocks}}: 32768 bytes of Block IDsde ID’s de los bloques, 8 bits per blockpara cada Bloque.*** {{nbt|byte-array|Data}}: 16384 bytes of Block Datade datos de los bloques, 4 bits per blockpor cada Bloque.*** {{nbt|byte-array|BlockLight}}: 16384 bytes of Block Lightbites de información de iluminación, 4 bits per blockpor cada Bloque.*** {{nbt|byte-array|SkyLight}}: 16384 bytes of Sky Lightbites de luz del cielo, 4 bits per blockpor Bloque.*** {{nbt|byte-array|HeightMap}}: 256 bytes of Height Map informationde información sobre la altura del mapa, 8 bits per por cada columna XZ column. Used for speeding up sky light calculationsUsado para agilizar los cálculos sobre SkyLight.*** {{nbt|list|Entities}}: List of TAG_CompoundsLista de conjuntos de TAG’s , one for each entity in the uno por cada entidad en el chunk.**** {{nbt|compound}} An entityUna entidad.
***** See [[Chunk format#Entity_Format|Chunk format → Entity Format]] - not all information is applicable to Minecraft Alpha.
*** {{nbt|list|TileEntities}}: List of TAG_CompoundsLista de conjuntos de TAG’s, one for each tile entity in the uno por cada Titulo de Entidad en el chunk.
**** {{nbt|compound}} A tile entity.
***** See [[Chunk format#Tile_Entity_Format|Chunk format → Tile Entity Format]] - not all information is applicable to Minecraft Alpha.
</div>
{{minecraft}}
[[Category:Development]]