Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package EvilNotch.charcoalblockmod;
- import cpw.mods.fml.common.IFuelHandler;
- import net.minecraft.block.Block;
- import net.minecraft.item.Item;
- import net.minecraft.item.ItemStack;
- public class FuelHandler implements IFuelHandler {
- @Override
- public int getBurnTime(ItemStack fuel) {
- Block blockFuel = Block.getBlockFromItem(fuel.getItem());
- Item itemFuel = fuel.getItem();
- if (blockFuel == charcoalblockmod.Charcoal_Block)
- {
- return 16000;//replace 0 with the number of ticks you want your Block or Item to burn. There are 20 ticks in a second. It takes 10 seconds to make one item.
- }else if (itemFuel == charcoalblockmod.Golden_Coal)
- {
- return 11200;//replace 0 with the number of ticks you want your Block or Item to burn. There are 20 ticks in a second. It takes 10 seconds to make one item.
- }else if (itemFuel == charcoalblockmod.Golden_Charcoal)
- {
- return 11200;//replace 0 with the number of ticks you want your Block or Item to burn. There are 20 ticks in a second. It takes 10 seconds to make one item
- }else if (blockFuel == charcoalblockmod.Golden_Coal_Block)
- {
- return 112000;//replace 0 with the number of ticks you want your Block or Item to burn. There are 20 ticks in a second. It takes 10 seconds to make one item.
- }else if (blockFuel == charcoalblockmod.Golden_Charcoal_Block)
- {
- return 112000;//replace 0 with the number of ticks you want your Block or Item to burn. There are 20 ticks in a second. It takes 10 seconds to make one item.
- }else{
- return 0;//Do not change this 0. Doing so would make every item in the game smeltable for the number of ticks this is set to.
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment