public int AddFuel(int i, int j)
{
if(i == Item.diamond.shiftedIndex) //Replace "Item.diamond" with the item you want to use as a fuel.
{ //Use Block.dirt.blockID if you want to use blocks.
return 1600; //How much time it will last. Coal last for 1600 and it smelts 8 items, so it is 200 per item smelted.
}
return 0;
}
Please give me a "+" if this helped you :smile.gif:. Thanks!
How would i make all my custom textures for my items show in 1 png?
You can go into the items.png (in the minecraft.jar under gui) and paste all of the textures into there. Then in your mod_file, there is a command that looks something like this:
public static final Item sapphiregem = new Item(23000).setIconCoord(19,6).setItemName("sapphireGem");
The ".setIconCoord" would tell Minecraft, at what location the texture is at in the items.png file. I've never used this before, but try it out and look at Notch's code. I think you will be able to figure it out.
Please give me a "+" if this helped you :smile.gif:. Thanks!
You can go into the items.png (in the minecraft.jar under gui) and paste all of the textures into there. Then in your mod_file, there is a command that looks something like this:
The ".setIconCoord" would tell Minecraft, at what location the texture is at in the items.png file. I've never used this before, but try it out and look at Notch's code. I think you will be able to figure it out.
Yeah, just copy and paste it into the items.png, and put in that code (but you will have to alter the numbers in it to set it to the right item).
if you use just int i it will not override and it wont work :L
Oh, thanks :smile.gif:.
change
return 1600; to something like 100000000