How do you make a mod that adds a new smelting recipe for items? I know how to make an block smelt something, (gold ore -> gold ingot), but how do you do something like this (porkchop -> cooked porkchop, or bow -> diamond)?
How do you make a mod that adds a new smelting recipe for items? I know how to make an block smelt something, (gold ore -> gold ingot), but how do you do something like this (porkchop -> cooked porkchop, or bow -> diamond)?
Thanks!
PS. With modloader
Its really simple, it is just like making a smelting recipe for a block. Here is the coding that you need to put into your mod_*** file to add it.
ModLoader.AddSmelting(Item.bow.shiftedIndex, new ItemStack(Item.diamond));
Finally, you can add a smelting recipe for it. If you mod like me, and have all of your recipes in a different file, then you just need to replace "Item.bow" with "mod_***.YOURITEM.shiftedIndex". Or, if you put your recipes into the same file, you can just replace "Item.bow" with "YOURITEM".
Yeah... Sometimes it annoys me to see people with bad grammar, and then in their mod, there is bad grammar, and they wonder why it doesn't work! XD
But anyway, thanks again! What can you do when it comes to moddding?
Yeah... Sometimes it annoys me to see people with bad grammar, and then in their mod, there is bad grammar, and they wonder why it doesn't work! XD
But anyway, thanks again! What can you do when it comes to moddding?
Armor, weapons, tools, mobs, blocks, items, throwable bombs, new trees, flowers, etc. Not that advanced
Thanks!
PS. With modloader
Its really simple, it is just like making a smelting recipe for a block. Here is the coding that you need to put into your mod_*** file to add it.
You need to make a static for the item in your mod_*** file, so first this.
Then set a image for it.
Finally, you can add a smelting recipe for it. If you mod like me, and have all of your recipes in a different file, then you just need to replace "Item.bow" with "mod_***.YOURITEM.shiftedIndex". Or, if you put your recipes into the same file, you can just replace "Item.bow" with "YOURITEM".
I know how to do a lot of the more "advanced" stuff, but I couldn't figure out that. XD
It is really simple to do once you get used to it and learn the ModLoader hooks. Just wondering, what advanced things can you do?
Sounds like you know a bit more than a lot of the people asking questions here, that's good.
But anyway, thanks again! What can you do when it comes to moddding?
Armor, weapons, tools, mobs, blocks, items, throwable bombs, new trees, flowers, etc. Not that advanced