Knux14 Posted August 10, 2013 Posted August 10, 2013 Hi guys I just want to know how does some mods to have more than 16 metadata on a block. Exemple: in ForgeMultiPart, there is more than 63 covers on the same ID: 25131:257 ... Thanks for the awnsers
larsgerrits Posted August 10, 2013 Posted August 10, 2013 Than you'll have to use tile-entities and NBT. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
Knux14 Posted August 11, 2013 Author Posted August 11, 2013 Mmh that makes sense, but how can you add items with already defined NBT into the game?
MineMaarten Posted August 11, 2013 Posted August 11, 2013 The metadata you're seeing on the covers are item damages (which can be higher than 0-15). Probably what's going on is that when you place down a cover it makes the TileEntity, with data dependant on the item damage of the item used to place down the cover. So it doesn't have NBT on the item. Predefined NBT can be done though, this can be specified in getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List) from the item class, to make NBT items appear in the Creative window. Also NBT can be given to ItemStacks in the crafting handler, to output items with NBT out of crafting recipes. Author of PneumaticCraft, MineChess, Minesweeper Mod and Sokoban Mod. Visit www.minemaarten.com to take a look at them.
Recommended Posts