13
Greetings users. In this tutorial, I will show you the basics of the NBT format, how it is used in Minecraft and software that you can use to edit NBT files.
NBT stands for Named Binary Tag - it is essentially a format used to store data in a tree structure made up of 13 tags (12 are used, one is empty), all of which have an ID and a name. It was first introduced with Java Edition Beta 1.3 as version 19132, and is currently at version 19133.
NBT files are GZip'd Compound tags, name and tag ID included.
It is used in a lot of files in the .minecraft directory, usually with either the
There are a variety of different programs you can use to edit NBT files. The most popular one, and one I would suggest, is NBTExplorer. WebNBT is also a good editor - you can just drag and drop an NBT file and edit it from there.
Thanks for reading. Leave a comment, give a diamond, and let me know what tutorial I should do next.
What is NBT?
NBT stands for Named Binary Tag - it is essentially a format used to store data in a tree structure made up of 13 tags (12 are used, one is empty), all of which have an ID and a name. It was first introduced with Java Edition Beta 1.3 as version 19132, and is currently at version 19133.
NBT files are GZip'd Compound tags, name and tag ID included.
The Tags
Tag Type | What It Is/Does |
---|---|
TAG_End | Marks the end of compound tags |
TAG_Byte | Defines a byte (values ranging from -128 to 127). Useful for saving memory in large arrays. Sometimes used in the game for boolean values. |
TAG_Short | A signed integral type, in this case a short , with values raning from -32,768 to 32,767. |
TAG_Int | A signed integral type, in this case a int , with values ranging from -231 to 231-1. "Int", by the way, stands for integer. |
TAG_Long | A signed integral type, int his a long , with values raning from -263 to 263-1. |
TAG_Float | A decimal value, usually with no limit on the amount of decimal numbers. |
TAG_Double | A decimal value. usually limited to a certain amount of decimal numbers. |
TAG_Byte_Array | An array of bytes. |
TAG_String | A UTF-8 string, or line of text. |
TAG_List | A list of tags, without repeated tag IDs or any tag names. |
TAG_Compound | A list of fully formed tags, including their IDs, names, and other values. |
TAG_Int_Array | An array of TAG_Int's. |
TAG_Long_Array | An array of TAG_Long's. |
Uses
It is used in a lot of files in the .minecraft directory, usually with either the
.dat
or .nbt
format. The level file for each world, level.dat, is formatted in NBT. So is the server list, servers.dat.Programs
There are a variety of different programs you can use to edit NBT files. The most popular one, and one I would suggest, is NBTExplorer. WebNBT is also a good editor - you can just drag and drop an NBT file and edit it from there.
Thanks for reading. Leave a comment, give a diamond, and let me know what tutorial I should do next.
Credit | Minecraft Wiki, Oracle Docs |
Tags |
tools/tracking
3738668
6
minecraft-info-part-2-nbt-format
Create an account or sign in to comment.