Infernal_Ignus Posted July 3, 2014 Posted July 3, 2014 In the mod I'm making I want to use some dyes in a crafting recipe, but since there are no longer item IDs I need the right ID names to use. When I tried looking this up all I could find is minecraft:dye for all of the dyes. So does anyone know what to use for, lapis, cactus green and bonemeal? Quote
loawkise Posted July 3, 2014 Posted July 3, 2014 This is all I use: new ItemStack(Item.getItemById(351), 1, 4) 351 being for dyes and the 4 for the metadata. In this case it is lapis. Quote
Infernal_Ignus Posted July 3, 2014 Author Posted July 3, 2014 I'm not using item IDs though. What I'm confused about is how to put the metadata in the code. What I tried was Item.itemRegistry.getObject("dye:4") but that didn't work Quote
Infernal_Ignus Posted July 3, 2014 Author Posted July 3, 2014 Yah thats why I'm confused, if I was using item IDs I probably could've found out how to do this online, but I couldn't find anything for the ID names Quote
Infernal_Ignus Posted July 3, 2014 Author Posted July 3, 2014 I'm trying to use dyes as crafting components, not the final result of the crafting. Can I still use an ItemStack constructor? Quote
Lomeli12 Posted July 3, 2014 Posted July 3, 2014 Um...why don't you use new ItemStack(Items.dye, 1, x) were x is the metadata value of the dye you want. Or use OreDictionary names and use "dyeColor" (ex "dyeRed", "dyeBlue", etc) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.