Introduction to NBT
Introduction to NBT
Note 1: For advanced information, check this page.
Note 2: For a list of all existing NBT tags, check "Enum Constant Summary" here or type /isp types if you're ingame.
Lists
The NBT type list is a tag that can hold a various number of other tags. In iSpawner, you can access the held tags like this:
list.0 list.1 list.2 ...
Note that the first element has the index 0 and not 1!
If you remove one element, the following ones are moved one index down.
Compound
The NBT type compound works like a list, but instead of an index every value has a name. Example:
compound.value1 compound.potato compound.ActiveEffects ...
Strings
The NBT type string is simply text. You can set it like
path.to.whatever string The value you want it to have
Numbers
The NBT types byte, short, int and long are integer values with different maximum values (byte is the smallest, long the largest).
The NBT types float and double are non-integer values.
Examples:
some.path byte 123 some.other.path long max some.nonInteger float 987.654321
Note: For all number types you can use "max" as value to insert the maximal possible value.
Bool
The NBT type bool does not exist in Minecraft, but you can use it in iSpawner and it will convert it to a 0 or 1 byte. Example:
path.0 bool true path.1 bool yes path.2 bool false path.3 bool no
Note: true = yes, false = no
byte_array and int_array
The NBT types byte_array and int_array are like lists, but they have a fixed size and contain only bytes or ints. Example:
some.path byte_array 4,8,15,16,23,42 some.other.path int_array 202,254,186,190
End
The NBT type end represents the end of a tag if the tags are written to a file. iSpawner uses it to delete tags (the "-" type). So if you use this
some.path.meow end
then some.path.meow will be removed.
Yes, you can use this in txt files if you really want to (you can't use the "-" tag though).