I'm working on a mod to add a Fusion Reactor into the game. After a bit of trial and error (mostly error) I've settled on the idea of having the fuel crafted into the machine on creation and then when a new entity is spawned into the world adding a liquid fuel which is topped up every couple hundred ticks.
Only issue is, I don't know how to code that

I've been looking at Klonan's KS power mod and its components, but I don't know Lua, have really only ever coded in Java. I can understand roughly whats going on but I have no idea how to apply a similar method to my code, any help?
Thanks in advance, charga