Purpose of the code. It reads the energy in my energycells and sends a redstone signal to my laser drill when power gets below a certain level. When the power recovers it shuts off the signal and allows the drill to activate again.
Here is my code. All but the round() function are originally by myself. I am actually proud of the work I did, but I have hit a wall with how I want to modify this code.
So, my code is in the spoiler (took some time to copy since http is off on the server I play).
My goals are to find a way to allow the program to detect new energy cells when they are placed down, set them to a callable variable of sorts, and then collect info as required to display the values as needed, and to activate or deactivate the laser drill at certain percentage points.
Any help you can offer will be appreciated.











