Posted 16 August 2014 - 07:18 PM
Wrote this simple plug'n'play script with the purpose of monitoring a TE3 Energy cells or EnderIO Capacitor Banks energy level and use it to output a redstone signal to toggle power production accordingly.
The script will by default detect any Cell or Capacitor adjacent or connected by cabled modems automatically and output a redstone signal out the back of the Computer once energy level falls below 10%. Redstone signal is then cut once energy levels are once again above 90%. (These percentages can easily be altered in the top of the code). For now it is limited to supporting just one Cell/capacitor per computer.
Should you wish to (it is entirely optional), the script will support and automatically detect an Advanced Monitor (1 high, 2 wide) either adjacent or attached by cabled modem. This will display the current state of the redstone signal and the current and maximum energy storage.
Great for preserving fuel in starter setups by controlling engines/dynamos/etc. to only run when needed.
http://pastebin.com/rjfa4ymR
The script will by default detect any Cell or Capacitor adjacent or connected by cabled modems automatically and output a redstone signal out the back of the Computer once energy level falls below 10%. Redstone signal is then cut once energy levels are once again above 90%. (These percentages can easily be altered in the top of the code). For now it is limited to supporting just one Cell/capacitor per computer.
Should you wish to (it is entirely optional), the script will support and automatically detect an Advanced Monitor (1 high, 2 wide) either adjacent or attached by cabled modem. This will display the current state of the redstone signal and the current and maximum energy storage.
Great for preserving fuel in starter setups by controlling engines/dynamos/etc. to only run when needed.
http://pastebin.com/rjfa4ymR