How to make Fuel from an existing block?

Started by BalintH on Thu, 06/17/2021 - 08:35

Topic category: Help with modding (Java Edition)

Last seen on 16:55, 13. Jul 2021
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make Fuel from an existing block?
Thu, 06/17/2021 - 08:35

I'am making a mod, and I added Charcoal Block into the game, and I want to make it a Fuel. How can I do it?

Last seen on 19:41, 21. Jul 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I've found something like…
Thu, 06/17/2021 - 17:04

I've found something like this on google:

@Override

 public int getItemBurnTime(ItemStack itemstack)

 {

  return 1000;

 }