Posted July 3, 201411 yr 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?
July 3, 201411 yr 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.
July 3, 201411 yr Author 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
July 3, 201411 yr Author 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
July 3, 201411 yr Author I'm trying to use dyes as crafting components, not the final result of the crafting. Can I still use an ItemStack constructor?
July 3, 201411 yr 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)
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.