Guest User

main

a guest
Jan 31st, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. package EvilNotch.charcoalblockmod;
  2.  
  3. import cpw.mods.fml.common.IFuelHandler;
  4. import net.minecraft.block.Block;
  5. import net.minecraft.item.Item;
  6. import net.minecraft.item.ItemStack;
  7.  
  8. public class FuelHandler implements IFuelHandler {
  9.  
  10. @Override
  11. public int getBurnTime(ItemStack fuel) {
  12. Block blockFuel = Block.getBlockFromItem(fuel.getItem());
  13. Item itemFuel = fuel.getItem();
  14. if (blockFuel == charcoalblockmod.Charcoal_Block)
  15. {
  16. 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.
  17. }else if (itemFuel == charcoalblockmod.Golden_Coal)
  18. {
  19. 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.
  20. }else if (itemFuel == charcoalblockmod.Golden_Charcoal)
  21. {
  22. 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
  23. }else if (blockFuel == charcoalblockmod.Golden_Coal_Block)
  24. {
  25. 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.
  26.  
  27. }else if (blockFuel == charcoalblockmod.Golden_Charcoal_Block)
  28. {
  29. 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.
  30. }else{
  31. 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.
  32. }
  33. }
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment