How to make a basic burner FE generator

Started by seraph on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a basic burner FE generator

So I'm messing around making a little modpack and came into the issue of a flashlight mod that adds flashlights! But no way to power them... So I took to making my own thinking it can't be that bad. Why does this not work? I have a linked GUI, it's a blockentity etc... And while we are at it how can I make it change to a different sprite while burning fuel?

The blocks ontick procedure:  https://imgur.com/a/mcreator-feOqTTp 
From my understanding it should work like

If an item is inserted without full energy in slot 1 (Flashlight is the only item with FE in the modpack)

  |- If not currently burning

    |--If there is a coal or charcoal in slot 0

      |--- Remove one of those coals and burn for 15 seconds

    |-- If there is no fuel left to burn turn off (And we'd revert to the base sprite)
  |- If it IS burning
    |--Set the light level to 13 (and change to the operating sprite if I knew how...)
    |--Set the energy value of the flashlight to energy + 4
    |--Reduce burnTime by 1