Szablon:Nbt/opis

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
To jest strona dokumentacji, powinna ona być dołączona na stronie głównej. Aby uzyskać więcej informacji sprawdź Szablon:Dokumentacja.
Wygląd tagów NBT

Ten szablon jest używany do łatwiejszego zobrazowania tagów NBT.

Użycie[edytuj kod]

{{nbt|<nazwa tagu>|pokazywany tekst (opcjonalne)}}

Dostępne tagi[edytuj kod]

Icon Tag name(s)
nbtsheet.png/1 byte
nbtsheet.png/6 short
nbtsheet.png/4 int
integer
nbtsheet.png/5 long
nbtsheet.png/3 float
nbtsheet.png/2 double
nbtsheet.png/9 byte array
byte-array
nbtsheet.png/7 string
nbtsheet.png/11 list
nbtsheet.png/8 compound
nbtsheet.png/10 int array
int-array
integer array
integer-array
nbtsheet.png/12 bool
boolean

Note: NBT does not use the boolean type (true/false attributes are usually of byte type), so this type should only be used for JSON.

Przykład[edytuj kod]

Użycie wraz z widokiem drzewa[edytuj kod]

<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 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}}: 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 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.
</div>
  • nbtsheet.png/8 World data.
    • nbtsheet.png/4 GameType: Whether in survival (0) or in creative (1) mode.
    • nbtsheet.png/5 LastPlayed: Stores the Unix time stamp (in seconds) when the player saved the game.
    • nbtsheet.png/7 LevelName: Specifies the name of the level.
    • nbtsheet.png/4 Platform: Seems to store the platform that the level is created on. Currently observed value is 2.
    • nbtsheet.png/8 Player: Player entity information. See Entity Format and Mob Entity Format for details. It is missing the id tag and has additional elements:
      • nbtsheet.png/4 Dimension: The dimension the player is in. 0 is the Overworld.
      • nbtsheet.png/11 Inventory: Each TAG_Compound in this list defines an item the player is carrying or holding.
        • nbtsheet.png/8 Inventory item data
          • nbtsheet.png/1 Slot: Indicates which inventory slot this item is in.
          • nbtsheet.png/6 id: Item or Block ID.
          • nbtsheet.png/1 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.
          • nbtsheet.png/6 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.
      • nbtsheet.png/4 Score: The score of the player.
    • nbtsheet.png/5 RandomSeed: Random number providing the Random Seed for the terrain.
    • nbtsheet.png/5 SizeOnDisk: Estimated size of the entire world in bytes.
    • nbtsheet.png/4 SpawnX: X coordinate of the player's spawn position. Default is 0.
    • nbtsheet.png/4 SpawnY: Y coordinate of the player's spawn position. Default is 64.
    • nbtsheet.png/4 SpawnZ: Z coordinate of the player's spawn position. Default is 0.
    • nbtsheet.png/4 StorageVersion: Current version of Pocket Edition NBT. Currently 3.
    • nbtsheet.png/5 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.