

The prefix is an unsigned short (thus 2 bytes) signifying the length of the string in bytesĪ list of nameless tags, all of the same type. The prefix is a signed integer (thus 4 bytes)Ī length-prefixed modified UTF-8 string.
Nbtexplorer not saving inventory changes 64 Bit#
It is only ever used inside a TAG_Compound, and is not named despite being in a TAG_CompoundĪ single signed, big endian 16 bit integerĪ single signed, big endian 32 bit integerĪ single signed, big endian 64 bit integerĪ single, big endian IEEE-754 single-precision floating point number ( NaN possible)Ī single, big endian IEEE-754 double-precision floating point number (NaN possible)Ī length-prefixed array of signed bytes. It is strongly advised to read this entire section or you may run into issues. There are 13 datatypes supported by this format, one of which is used to close compound tags. The NBT file format is extremely simple, and writing a library capable of reading/writing it is a simple affair.

NEINedit (Obj-C), an OS X specific editor.NBTExplorer (C#) NBT Directory-tree interface that fully supports the Minecraft.There also exist several dedicated NBT editors, which will likely be useful to you if you are developing an NBT library of your own. Unless you have specific goals or licence requirements, it is extremely recommended to go with one of the existing libraries.Īlmost every 3rd-party Minecraft application uses NBT on some level. Kotlin (with a builder DSL and type-safety),.Go (Old, without TagLongArray, 404 Not Found),.Go (New, with reflection, support SNBT),.There are many, many libraries for manipulating NBT, written in several languages, and often several per language. zlib'd (aka DEFLATE with a few bytes extra).NBT files you can encounter as a developer will be stored in three different ways, mainly the second variation as per Notch's original specification. World index file ( level.dat) that contains general information (spawn point, time of day, etc.).Saved worlds (both single player and multiplayer).This includes such things as inventory and location. Player data (both single player and multiplayer, one file per player).Multiplayer saved server list ( servers.dat).The NBT format is currently used in several places, chiefly:
