Minecraft Wiki
kGeen bewerkingssamenvatting
k (categorizatie correctie)
 
(4 tussenliggende versies door een andere gebruiker niet weergegeven)
Regel 5: Regel 5:
   
 
== Gebruik ==
 
== Gebruik ==
<pre>{{nbt|<labelnaam>|tekst (optioneel)}}</pre>
+
<pre>{{nbt|<labelnaam>|tekst (optioneel)|beschrijving (optioneel)|no_colon=1 (optioneel, verbergt de dubbelepunt)}}</pre>
   
 
=== Beschikbare labels ===
 
=== Beschikbare labels ===
Regel 56: Regel 56:
 
<pre>
 
<pre>
 
<nowiki><div class="treeview"></nowiki>
 
<nowiki><div class="treeview"></nowiki>
* '''<nowiki>{{nbt|compound}}</nowiki>''' World data.
+
* <nowiki>{{nbt|compound}}</nowiki> World data.
** '''<nowiki>{{nbt|int|GameType}}</nowiki>''': Whether in survival (0) or in creative (1) mode.
+
** <nowiki>{{nbt|int|GameType}}</nowiki> Whether in survival (0) or in creative (1) mode.
** '''<nowiki>{{nbt|long|LastPlayed}}</nowiki>''': Stores the Unix time stamp (in seconds) when the player saved the game.
+
** <nowiki>{{nbt|long|LastPlayed}}</nowiki> Stores the Unix time stamp (in seconds) when the player saved the game.
** '''<nowiki>{{nbt|string|LevelName}}</nowiki>''': Specifies the name of the level.
+
** <nowiki>{{nbt|string|LevelName}}</nowiki> Specifies the name of the level.
** '''<nowiki>{{nbt|int|Platform}}</nowiki>''': Seems to store the platform that the level is created on. Currently observed value is 2.
+
** <nowiki>{{nbt|int|Platform}}</nowiki> Seems to store the platform that the level is created on. Currently observed value is 2.
** '''<nowiki>{{nbt|compound|Player}}</nowiki>''': Player entity information. See [[#Entity Format|Entity Format]] and Mob Entity Format for details. It is missing the id tag and has additional elements:
+
** <nowiki>{{nbt|compound|Player}}</nowiki> Player entity information. See [[#Entity Format|Entity Format]] and Mob Entity Format for details. It is missing the id tag and has additional elements
*** '''<nowiki>{{nbt|int|Dimension}}</nowiki>''': The dimension the player is in. 0 is the Overworld.
+
*** <nowiki>{{nbt|int|Dimension}}</nowiki> The dimension the player is in. 0 is the Overworld.
*** '''<nowiki>{{nbt|list|Inventory}}</nowiki>''': Each TAG_Compound in this list defines an item the player is carrying or holding.
+
*** <nowiki>{{nbt|list|Inventory}}</nowiki> Each TAG_Compound in this list defines an item the player is carrying or holding.
**** '''<nowiki>{{nbt|compound}}</nowiki>''' Inventory item data
+
**** <nowiki>{{nbt|compound}}</nowiki> Inventory item data
***** '''<nowiki>{{nbt|byte|Slot}}</nowiki>''': Indicates which inventory slot this item is in.
+
***** <nowiki>{{nbt|byte|Slot}}</nowiki> Indicates which inventory slot this item is in.
***** '''<nowiki>{{nbt|short|id}}</nowiki>''': [[Datawaardes (Pocket Editie)|Item or Block ID.]]
+
***** <nowiki>{{nbt|short|id}}</nowiki> [[Datawaardes (Pocket Editie)|Item or Block ID.]]
***** '''<nowiki>{{nbt|byte|Count}}</nowiki>''': Number of items stacked in this inventory slot. Any item can be stacked, including tools. Range is 1-255. Values above 127 and below -128 are not displayed in-game.
+
***** <nowiki>{{nbt|byte|Count}}</nowiki> Number of items stacked in this inventory slot. Any item can be stacked, including tools. Range is 1-255. Values above 127 and below -128 are not displayed in-game.
***** '''<nowiki>{{nbt|short|Damage}}</nowiki>''': For tools, the amount of wear they have suffered. The maximum durability of the tool (for example, 33 for golden tools) means undamaged. When the Damage reaches 0, it breaks and disappears.
+
***** <nowiki>{{nbt|short|Damage}}</nowiki> For tools, the amount of wear they have suffered. The maximum durability of the tool (for example, 33 for golden tools) means undamaged. When the Damage reaches 0, it breaks and disappears.
*** '''<nowiki>{{nbt|int|Score}}</nowiki>''': The score of the player.
+
*** <nowiki>{{nbt|int|Score}}</nowiki> The score of the player.
** '''<nowiki>{{nbt|long|RandomSeed}}</nowiki>''': Random number providing the Random Seed for the terrain.
+
** <nowiki>{{nbt|long|RandomSeed}}</nowiki> Random number providing the Random Seed for the terrain.
** '''<nowiki>{{nbt|long|SizeOnDisk}}</nowiki>''': Estimated size of the entire world in bytes.
+
** <nowiki>{{nbt|long|SizeOnDisk}}</nowiki> Estimated size of the entire world in bytes.
** '''<nowiki>{{nbt|int|SpawnX}}</nowiki>''': X coordinate of the player's spawn position. Default is 0.
+
** <nowiki>{{nbt|int|SpawnX}}</nowiki> X coordinate of the player's spawn position. Default is 0.
** '''<nowiki>{{nbt|int|SpawnY}}</nowiki>''': Y coordinate of the player's spawn position. Default is 64.
+
** <nowiki>{{nbt|int|SpawnY}}</nowiki> Y coordinate of the player's spawn position. Default is 64.
** '''<nowiki>{{nbt|int|SpawnZ}}</nowiki>''': Z coordinate of the player's spawn position. Default is 0.
+
** <nowiki>{{nbt|int|SpawnZ}}</nowiki> Z coordinate of the player's spawn position. Default is 0.
** '''<nowiki>{{nbt|int|StorageVersion}}</nowiki>''': Current version of Pocket Edition NBT. Currently 3.
+
** <nowiki>{{nbt|int|StorageVersion}}</nowiki> Current version of Pocket Edition NBT. Currently 3.
** '''<nowiki>{{nbt|long|Time}}</nowiki>''': Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 14400 ticks per Minecraft [[day/night cycle]], making the full cycle length 12 minutes—8 minutes shorter than the standard 20 minute day/night cycle. 0 is the start of [[Day/night cycle#Daytime|daytime]], 7200 is the start of [[Day/night cycle#Sunset/Dusk|sunset]], 8280 is the start of [[Day/night cycle#Nighttime|nighttime]], 13320 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and 14400 is daytime again. The value stored in level.dat is always increasing and can be larger than 14400, but the "time of day" is always modulo 14400 of the "Time" field value.
+
** <nowiki>{{nbt|long|Time}}</nowiki> Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 14400 ticks per Minecraft [[day/night cycle]], making the full cycle length 12 minutes—8 minutes shorter than the standard 20 minute day/night cycle. 0 is the start of [[Day/night cycle#Daytime|daytime]], 7200 is the start of [[Day/night cycle#Sunset/Dusk|sunset]], 8280 is the start of [[Day/night cycle#Nighttime|nighttime]], 13320 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and 14400 is daytime again. The value stored in level.dat is always increasing and can be larger than 14400, but the "time of day" is always modulo 14400 of the "Time" field value.
 
<nowiki></div></nowiki>
 
<nowiki></div></nowiki>
 
</pre>
 
</pre>
Regel 82: Regel 82:
 
<div class="treeview">
 
<div class="treeview">
 
* {{nbt|compound}} World data.
 
* {{nbt|compound}} World data.
** {{nbt|int|GameType}}: Whether in survival (0) or in creative (1) mode.
+
** {{nbt|int|GameType}} Whether in survival (0) or in creative (1) mode.
** {{nbt|long|LastPlayed}}: Stores the Unix time stamp (in seconds) when the player saved the game.
+
** {{nbt|long|LastPlayed}} Stores the Unix time stamp (in seconds) when the player saved the game.
** {{nbt|string|LevelName}}: Specifies the name of the level.
+
** {{nbt|string|LevelName}} Specifies the name of the level.
** {{nbt|int|Platform}}: Seems to store the platform that the level is created on. Currently observed value is 2.
+
** {{nbt|int|Platform}} Seems to store the platform that the level is created on. Currently observed value is 2.
** {{nbt|compound|Player}}: Player entity information. See [[#Entity Format|Entity Format]] and Mob Entity Format for details. It is missing the id tag and has additional elements:
+
** {{nbt|compound|Player}} Player entity information. See [[#Entity Format|Entity Format]] and Mob Entity Format for details. It is missing the id tag and has additional elements
*** {{nbt|int|Dimension}}: The dimension the player is in. 0 is the Overworld.
+
*** {{nbt|int|Dimension}} The dimension the player is in. 0 is the Overworld.
*** {{nbt|list|Inventory}}: Each TAG_Compound in this list defines an item the player is carrying or holding.
+
*** {{nbt|list|Inventory}} Each TAG_Compound in this list defines an item the player is carrying or holding.
 
**** {{nbt|compound}} Inventory item data
 
**** {{nbt|compound}} Inventory item data
***** {{nbt|byte|Slot}}: Indicates which inventory slot this item is in.
+
***** {{nbt|byte|Slot}} Indicates which inventory slot this item is in.
***** {{nbt|short|id}}: [[Data values (Pocket Edition)|Item or Block ID.]]
+
***** {{nbt|short|id}} [[Data values (Pocket Edition)|Item or Block ID.]]
***** {{nbt|byte|Count}}: Number of items stacked in this inventory slot. Any item can be stacked, including tools. Range is 1-255. Values above 127 and below -128 are not displayed in-game.
+
***** {{nbt|byte|Count}} Number of items stacked in this inventory slot. Any item can be stacked, including tools. Range is 1-255. Values above 127 and below -128 are not displayed in-game.
***** {{nbt|short|Damage}}: For tools, the amount of wear they have suffered. The maximum durability of the tool (for example, 33 for golden tools) means undamaged. When the Damage reaches 0, it breaks and disappears.
+
***** {{nbt|short|Damage}} For tools, the amount of wear they have suffered. The maximum durability of the tool (for example, 33 for golden tools) means undamaged. When the Damage reaches 0, it breaks and disappears.
*** {{nbt|int|Score}}: The score of the player.
+
*** {{nbt|int|Score}} The score of the player.
** {{nbt|long|RandomSeed}}: Random number providing the Random Seed for the terrain.
+
** {{nbt|long|RandomSeed}} Random number providing the Random Seed for the terrain.
** {{nbt|long|SizeOnDisk}}: Estimated size of the entire world in bytes.
+
** {{nbt|long|SizeOnDisk}} Estimated size of the entire world in bytes.
** {{nbt|int|SpawnX}}: X coordinate of the player's spawn position. Default is 0.
+
** {{nbt|int|SpawnX}} X coordinate of the player's spawn position. Default is 0.
** {{nbt|int|SpawnY}}: Y coordinate of the player's spawn position. Default is 64.
+
** {{nbt|int|SpawnY}} Y coordinate of the player's spawn position. Default is 64.
** {{nbt|int|SpawnZ}}: Z coordinate of the player's spawn position. Default is 0.
+
** {{nbt|int|SpawnZ}} Z coordinate of the player's spawn position. Default is 0.
** {{nbt|int|StorageVersion}}: Current version of Pocket Edition NBT. Currently 3.
+
** {{nbt|int|StorageVersion}} Current version of Pocket Edition NBT. Currently 3.
** {{nbt|long|Time}}: Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 14400 ticks per Minecraft [[day/night cycle]], making the full cycle length 12 minutes—8 minutes shorter than the standard 20 minute day/night cycle. 0 is the start of [[Day/night cycle#Daytime|daytime]], 7200 is the start of [[Day/night cycle#Sunset/Dusk|sunset]], 8280 is the start of [[Day/night cycle#Nighttime|nighttime]], 13320 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and 14400 is daytime again. The value stored in level.dat is always increasing and can be larger than 14400, but the "time of day" is always modulo 14400 of the "Time" field value.
+
** {{nbt|long|Time}} Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 14400 ticks per Minecraft [[day/night cycle]], making the full cycle length 12 minutes—8 minutes shorter than the standard 20 minute day/night cycle. 0 is the start of [[Day/night cycle#Daytime|daytime]], 7200 is the start of [[Day/night cycle#Sunset/Dusk|sunset]], 8280 is the start of [[Day/night cycle#Nighttime|nighttime]], 13320 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and 14400 is daytime again. The value stored in level.dat is always increasing and can be larger than 14400, but the "time of day" is always modulo 14400 of the "Time" field value.
 
</div>
 
</div>
   
Regel 107: Regel 107:
 
* {{tl|nbt/sprite}}
 
* {{tl|nbt/sprite}}
   
  +
<includeonly>
<onlyinclude>
 
 
[[en:Template:Nbt]]
 
[[en:Template:Nbt]]
</onlyinclude>
+
</includeonly>
 
<noinclude>
 
<noinclude>
[[Categorie:Documentatiesjablonen]]
 
 
 
[[en:Template:Nbt/doc]]
 
[[en:Template:Nbt/doc]]
 
</noinclude>
 
</noinclude>

Huidige versie van 9 jan 2020 om 18:25

Dit is de documentatiepagina, het zou moeten worden getranscludeerd op de bijbehorende pagina. Zie Sjabloon:Documentatie voor meer informatie.

Dit sjabloon wordt gebruikt om NBT beter te laten zien.

Bij het tonen van de structuur van een NBT-bestand, kan dit het beste worden gedaan in een ongeordende lijst met de klasse treeview.

Gebruik

{{nbt|<labelnaam>|tekst (optioneel)|beschrijving (optioneel)|no_colon=1 (optioneel, verbergt de dubbelepunt)}}

Beschikbare labels

Afbeelding Labelnaam/-namen

:
byte

:
short

:
int
integer

:
long

:
float

:
double

:
byte array
byte-array

:
string

:
list

:
compound

:
int array
int-array
integer array
integer-array

:
bool
boolean

:
long array
long-array

Voorbeeld

Als treeview

<div class="treeview">
* {{nbt|compound}} World data.
** {{nbt|int|GameType}} Whether in survival (0) or in creative (1) mode.
** {{nbt|long|LastPlayed}} Stores the Unix time stamp (in seconds) when the player saved the game.
** {{nbt|string|LevelName}} Specifies the name of the level.
** {{nbt|int|Platform}} Seems to store the platform that the level is created on. Currently observed value is 2.
** {{nbt|compound|Player}} Player entity information. See [[#Entity Format|Entity Format]] and Mob Entity Format for details. It is missing the id tag and has additional elements
*** {{nbt|int|Dimension}} The dimension the player is in. 0 is the Overworld.
*** {{nbt|list|Inventory}} Each TAG_Compound in this list defines an item the player is carrying or holding.
**** {{nbt|compound}} Inventory item data
***** {{nbt|byte|Slot}} Indicates which inventory slot this item is in.
***** {{nbt|short|id}} [[Datawaardes (Pocket Editie)|Item or Block ID.]]
***** {{nbt|byte|Count}} Number of items stacked in this inventory slot. Any item can be stacked, including tools. Range is 1-255. Values above 127 and below -128 are not displayed in-game.
***** {{nbt|short|Damage}} For tools, the amount of wear they have suffered. The maximum durability of the tool (for example, 33 for golden tools) means undamaged. When the Damage reaches 0, it breaks and disappears.
*** {{nbt|int|Score}} The score of the player.
** {{nbt|long|RandomSeed}} Random number providing the Random Seed for the terrain.
** {{nbt|long|SizeOnDisk}} Estimated size of the entire world in bytes.
** {{nbt|int|SpawnX}} X coordinate of the player's spawn position. Default is 0.
** {{nbt|int|SpawnY}} Y coordinate of the player's spawn position. Default is 64.
** {{nbt|int|SpawnZ}} Z coordinate of the player's spawn position. Default is 0.
** {{nbt|int|StorageVersion}} Current version of Pocket Edition NBT. Currently 3.
** {{nbt|long|Time}} Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 14400 ticks per Minecraft [[day/night cycle]], making the full cycle length 12 minutes—8 minutes shorter than the standard 20 minute day/night cycle. 0 is the start of [[Day/night cycle#Daytime|daytime]], 7200 is the start of [[Day/night cycle#Sunset/Dusk|sunset]], 8280 is the start of [[Day/night cycle#Nighttime|nighttime]], 13320 is the start of [[Day/night cycle#Sunrise/Dawn|sunrise]], and 14400 is daytime again. The value stored in level.dat is always increasing and can be larger than 14400, but the "time of day" is always modulo 14400 of the "Time" field value.
</div>

  • : World data.

    •  GameType: Whether in survival (0) or in creative (1) mode.

    •  LastPlayed: Stores the Unix time stamp (in seconds) when the player saved the game.

    •  LevelName: Specifies the name of the level.

    •  Platform: Seems to store the platform that the level is created on. Currently observed value is 2.

    •  Player: Player entity information. See Entity Format and Mob Entity Format for details. It is missing the id tag and has additional elements

      •  Dimension: The dimension the player is in. 0 is the Overworld.

      •  Inventory: Each TAG_Compound in this list defines an item the player is carrying or holding.

        • : Inventory item data

          •  Slot: Indicates which inventory slot this item is in.

          •  id: Item or Block ID.

          •  Count: Number of items stacked in this inventory slot. Any item can be stacked, including tools. Range is 1-255. Values above 127 and below -128 are not displayed in-game.

          •  Damage: For tools, the amount of wear they have suffered. The maximum durability of the tool (for example, 33 for golden tools) means undamaged. When the Damage reaches 0, it breaks and disappears.

      •  Score: The score of the player.

    •  RandomSeed: Random number providing the Random Seed for the terrain.

    •  SizeOnDisk: Estimated size of the entire world in bytes.

    •  SpawnX: X coordinate of the player's spawn position. Default is 0.

    •  SpawnY: Y coordinate of the player's spawn position. Default is 64.

    •  SpawnZ: Z coordinate of the player's spawn position. Default is 0.

    •  StorageVersion: Current version of Pocket Edition NBT. Currently 3.

    •  Time: Stores the current "time of day" in ticks. There are 20 ticks per real-life second, and 14400 ticks per Minecraft day/night cycle, making the full cycle length 12 minutes—8 minutes shorter than the standard 20 minute day/night cycle. 0 is the start of daytime, 7200 is the start of sunset, 8280 is the start of nighttime, 13320 is the start of sunrise, and 14400 is daytime again. The value stored in level.dat is always increasing and can be larger than 14400, but the "time of day" is always modulo 14400 of the "Time" field value.

Zie ook