Użytkownik:Malpkakefirek/Nbt

Z Minecraft Wiki Polska
Przejdź do nawigacji Przejdź do wyszukiwania
[ podgląd | edytuj | historia | odśwież ]Dokumentacja
Wygląd tagów NBT

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

Użycie

{{Użytkownik:Malpkakefirek/Nbt|<nazwa tagu>|pokazywany tekst (opcjonalne)}}

Dostępne tagi

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

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

Użycie wraz z widokiem drzewa

<div class="treeview">
* {{Użytkownik:Malpkakefirek/Nbt|compound}} World data.
** {{Użytkownik:Malpkakefirek/Nbt|int|GameType}}: Whether in survival (0) or in creative (1) mode.
** {{Użytkownik:Malpkakefirek/Nbt|long|LastPlayed}}: Stores the Unix time stamp (in seconds) when the player saved the game.
** {{Użytkownik:Malpkakefirek/Nbt|string|LevelName}}: Specifies the name of the level.
** {{Użytkownik:Malpkakefirek/Nbt|int|Platform}}: Seems to store the platform that the level is created on. Currently observed value is 2.
** {{Użytkownik:Malpkakefirek/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:
*** {{Użytkownik:Malpkakefirek/Nbt|int|Dimension}}: The dimension the player is in. 0 is the Overworld.
*** {{Użytkownik:Malpkakefirek/Nbt|list|Inventory}}: Each TAG_Compound in this list defines an item the player is carrying or holding.
**** {{Użytkownik:Malpkakefirek/Nbt|compound}} Inventory item data
***** {{Użytkownik:Malpkakefirek/Nbt|byte|Slot}}: Indicates which inventory slot this item is in.
***** {{Użytkownik:Malpkakefirek/Nbt|short|id}}: Item or Block ID.
***** {{Użytkownik:Malpkakefirek/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.
***** {{Użytkownik:Malpkakefirek/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.
*** {{Użytkownik:Malpkakefirek/Nbt|int|Score}}: The score of the player.
** {{Użytkownik:Malpkakefirek/Nbt|long|RandomSeed}}: Random number providing the Random Seed for the terrain.
** {{Użytkownik:Malpkakefirek/Nbt|long|SizeOnDisk}}: Estimated size of the entire world in bytes.
** {{Użytkownik:Malpkakefirek/Nbt|int|SpawnX}}: X coordinate of the player's spawn position. Default is 0.
** {{Użytkownik:Malpkakefirek/Nbt|int|SpawnY}}: Y coordinate of the player's spawn position. Default is 64.
** {{Użytkownik:Malpkakefirek/Nbt|int|SpawnZ}}: Z coordinate of the player's spawn position. Default is 0.
** {{Użytkownik:Malpkakefirek/Nbt|int|StorageVersion}}: Current version of Pocket Edition NBT. Currently 3.
** {{Użytkownik:Malpkakefirek/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>
  • test_Nbtsheet.png/8 World data.
    • test_Nbtsheet.png/4 GameType: Whether in survival (0) or in creative (1) mode.
    • test_Nbtsheet.png/5 LastPlayed: Stores the Unix time stamp (in seconds) when the player saved the game.
    • test_Nbtsheet.png/7 LevelName: Specifies the name of the level.
    • test_Nbtsheet.png/4 Platform: Seems to store the platform that the level is created on. Currently observed value is 2.
    • test_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:
      • test_Nbtsheet.png/4 Dimension: The dimension the player is in. 0 is the Overworld.
      • test_Nbtsheet.png/11 Inventory: Each TAG_Compound in this list defines an item the player is carrying or holding.
        • test_Nbtsheet.png/8 Inventory item data
          • test_Nbtsheet.png/1 Slot: Indicates which inventory slot this item is in.
          • test_Nbtsheet.png/6 id: Item or Block ID.
          • test_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.
          • test_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.
      • test_Nbtsheet.png/4 Score: The score of the player.
    • test_Nbtsheet.png/5 RandomSeed: Random number providing the Random Seed for the terrain.
    • test_Nbtsheet.png/5 SizeOnDisk: Estimated size of the entire world in bytes.
    • test_Nbtsheet.png/4 SpawnX: X coordinate of the player's spawn position. Default is 0.
    • test_Nbtsheet.png/4 SpawnY: Y coordinate of the player's spawn position. Default is 64.
    • test_Nbtsheet.png/4 SpawnZ: Z coordinate of the player's spawn position. Default is 0.
    • test_Nbtsheet.png/4 StorageVersion: Current version of Pocket Edition NBT. Currently 3.
    • test_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.

Zobacz również