テンプレート:Nbt

提供:Minecraft Japan Wiki
ナビゲーションに移動 検索に移動
[閲覧 | 編集 | 履歴 | キャッシュ破棄]ドキュメント
スプライトシート

NBTタグとJSONフォーマットを明示的に表記するためのテンプレート。

NBTの構造を表示する場合は、treeviewクラスでラップされたリスト(番号なし箇条書き)と組み合わせるのが最適です。

Usage[ソースを編集]

{{nbt|<tagname>|display text (optional)}}

Available tags[ソースを編集]

Icon Tag name(s) データ型
byte バイト(符号なし8bit整数)
short 16bit符号付整数
int
integer
32bit符号付整数
long 64bit符号付整数
float 単精度浮動小数
double 倍精度浮動小数
byte array
byte-array
バイト配列
string 文字列
list 配列
compound 複合データ
int array
int-array
integer array
integer-array
32bit整数配列
bool
boolean
ブール値(true/false)
long array
long-array
長精度整数配列

注意: NBTはboolean型を扱いません(true/false値は内部でbyte型として扱われる)これらはJSONへ変換される場合にのみ適用されます。

JSONはdoubleのような型指定を行える設計ではありません。byte, short, int, long, float, byte array and int arrayなどの型はMinecraftがJSONをどのように読み込むかを明示する場合にのみ指定してください。

Example[ソースを編集]

Usage with treeview list[ソースを編集]

<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>
  • 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.

Template Data[ソースを編集]

NBTタグとJSONフォーマットを明示的に表記するためのテンプレート。タグ名はDocumentationを参照。

テンプレートパラメーター[テンプレートデータを編集]

パラメーター説明状態
タグ1

表示するアイコン(タグ)を指定します。

int
文字列必須
文字列2

タグのあとに表示する文字列を指定します(任意)。

ウィキテキストの一部省略可能

参照[ソースを編集]

Minecraft Wiki - Template:Nbt

[閲覧 | 編集 | 履歴 | キャッシュ破棄]上記の記事は次のページから転記しています: テンプレート:Nbt/doc.


Cookieは私達のサービスを提供するのに役立ちます。このサービスを使用することにより、お客様はCookieの使用に同意するものとします。