Jump to content

Recommended Posts

Posted

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

Posted

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.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.