I need help. I'm making a mod that is going to involve Chocolate Bars, but I can't find how to use the Cocoa Beans. I know they are in dyePowder and have a damage value of 3. (I think) I just need someone who can easily code to help a N00B out
code so far:
ModLoader.addSmelting(Item.dyePowder.shiftedIndex, new ItemStack(Choco, 1), 2.5F);
So, Yeah, any ideas?
code so far:
ModLoader.addSmelting(Item.dyePowder.shiftedIndex, new ItemStack(Choco, 1), 2.5F);
So, Yeah, any ideas?
20
anyone gonna help?
please im in need
What do you need help with? You haven't really told us what you want us to do
I need to know how to make a smelting recipe that requires cocoa beans, not any dye.
kinda wish people could help me. I know im inpatient but i need to finish this
ModLoader.addSmelting(Block.dirt.shiftedIndex, new ItemStack(Item.diamond), 1.0F
Just replace dirt and diamond with whatever you want!
Just replace dirt and diamond with whatever you want!
I'm not sure if this will work, probably for a recipe, but not for the dyePowder in the smelting.(I haven't tried it so I don't know.)
Probably add '3,' after Item.dyePowder.shiftedIndex.
So it would look like:
Item.dyePowder.shiftedIndex, 3, (Rest of the smelting recipe.)
However I'm sure it would work if Cocoa Beans was the result of the recipe, just not sure about the other way.You can try though.
If that doesn't work you could try removing the shiftedIndex after Item.dyePowder and see if that works.
If you read what he's talking about, he wants to use cocoa beans which is part of the dyePowder item in the code, not any dye, or a block.
EDIT: Also, you don't even use shiftedIndex when using a block.You use blockID.
Probably add '3,' after Item.dyePowder.shiftedIndex.
So it would look like:
Item.dyePowder.shiftedIndex, 3, (Rest of the smelting recipe.)
However I'm sure it would work if Cocoa Beans was the result of the recipe, just not sure about the other way.You can try though.
If that doesn't work you could try removing the shiftedIndex after Item.dyePowder and see if that works.
some1epic123ModLoader.addSmelting(Block.dirt.shiftedIndex, new ItemStack(Item.diamond), 1.0F
Just replace dirt and diamond with whatever you want!
If you read what he's talking about, he wants to use cocoa beans which is part of the dyePowder item in the code, not any dye, or a block.
EDIT: Also, you don't even use shiftedIndex when using a block.You use blockID.
I know that I'm trying to get cocoa beans SPECIFICALLY. I know it would be this:
ModLoader.addSmelting(Item.dyepowder___.shiftedIndex, new ItemStack(Choco), 2.5F
___________________________________^________________________________
Looking for variable here to make it Cocoa Beans
ModLoader.addSmelting(Item.dyepowder___.shiftedIndex, new ItemStack(Choco), 2.5F
___________________________________^________________________________
Looking for variable here to make it Cocoa Beans
hey thanks sed someone knows what I'm talking about (last post was for some1epic [who's may or may not be])
okay sed I tried both but a lightbulb error popped up saying the addsmelting(int, ItemStack, something i can't remember) is not applicable for the argument (Item, ItemStack, and the samething ICR)
I was wrong about adding the 1, you just put the 3, the 1 was how much you get when putting it in a recipe. (I just noticed this...)
EDIT: I can't seem to figure it out :/
I found you can't put a 3 after it, and that you don't put .shiftedIndex though.
EDIT: I can't seem to figure it out :/
I found you can't put a 3 after it, and that you don't put .shiftedIndex though.
I hope your right this time
I edited my last post, I was testing and it seems I'm wrong.
I'm trying to figure it out though.
I do know that you remove .shiftedIndex though, and you don't put a 3 after it.I'll keep trying....
I'm trying to figure it out though.
I do know that you remove .shiftedIndex though, and you don't put a 3 after it.I'll keep trying....
WHAT?! It still says Not applicable with arguement! I don't know what to do. Does version of Eclipse matter?
Edit: saw your edit man it is hard to keep up.
Edit: saw your edit man it is hard to keep up.
I don't use eclipse, so I don't know.I just use NotePad++ and recompile to see errors.
Well, I've been searching on Google since I couldn't figure it out myself, and it seems you can't use a specific dye for smelting (As what is smelted), so you'll have to make a new item or something.
Well, I've been searching on Google since I couldn't figure it out myself, and it seems you can't use a specific dye for smelting (As what is smelted), so you'll have to make a new item or something.
Character.valueOf('#'), new ItemStack(Item.dyePowder, amount, damageValue)For crafting recipes. Adjust it for smelting?
No that doesn't work the ModLoader files have a specific method for the code... It is painful.
Oh well, that's too bad i might make compressed cocoa or something, but thanks for the help.
