How do I make a block a block that's like a furnace but gains "electricity" overtime?

Started by BurntDonut on

Topic category: Help with modding (Java Edition)

Last seen on 09:15, 10. Jun 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make a block a block that's like a furnace but gains "electricity" overtime?

I made a block and I wanted it to work like a furnace but instead of smelting it gains "electricity" and that electricity can be used to make Charged Electric cells using Electric cell containers. I've already watched a lot of tutorials to use and to come up with my own procedures to make it gain electricity but to no avail. How do I manage to do this?

Last seen on 18:01, 13. Jun 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Depends on whether you mean …
Sat, 01/27/2024 - 13:19

Depends on whether you mean 'forge' energy, (the sort that's used in all the tech mods), or just your own custom energy. In the later case, you'd just want to add a custom number NBT tag to your block that increases every time it finishes smelting an item. (And decreases whenever you use it to make an energy cell.)