So I'm working on a mod that involved cocoa beans and lapis lazuli, and I tried to use cocoa beans in a recipe. I already tried this code as said in other threads:
Character.valueOf('C'), new ItemStack(Item.dyePowder, 1, 3)
But it still didn't work, due to the fact that Eclipse, the text editor and compiler that I use, says that "dyePowder" cannot be resolved or is not a field. I'm new to modding and this language in general, so I'd appreciate any help given.
I'm sorry, and I now know how to use dye in a crafting recipe since it is metadata sensitive, but I still don't know how to use it in smelting recipes. This tutorial is good and all, but I must be blind or just plain dumb because I can't figure out how to do this. I'm sorry to bother.
Oh, I just purely guessed, and I think I got it:
GameRegistry.addSmelting(new ItemStack(Items.dye, 1, 4), new ItemStack (itemLapisLazuliIngot), 0.7F);
I think this is the one, I'm going to test it out;
No worries! Was hoping you'd catch on to that. Programming is a skill that comes with time, just like anything else - it might feel like you're getting in over your head, but just keep practicing like this and you'll start to catch on to newbie mistakes like that.