Advertisement
maxo10

BigReactor+Screen+EnderIO+CC

Nov 27th, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | None | 0 0
  1. local bigr = peripheral.wrap("back")
  2. local monitor = peripheral.wrap("top")
  3. local modem = peripheral.wrap("left")
  4. local capMax = 60000000
  5.  
  6. modem.open(1)
  7.  
  8. while true do
  9.  
  10. energyStored = modem.callRemote("tile_blockcapacitorbank_name_0", "getEnergyStored")
  11. bigrEnergy = bigr.getEnergyStored()
  12.  
  13. monitor.clear()
  14. monitor.setCursorPos(1,1)
  15.     monitor.write("BigReactor Energy = "..bigrEnergy.." RF")
  16. monitor.setCursorPos(1,2)
  17.     monitor.write("EnderIO RF stored = "..energyStored.." RF")
  18.  
  19. if energyStored < 20000 then
  20.     if bigrEnergy == 0 then
  21.         repeat
  22.         bigr.setActive(true)
  23.         sleep(5)
  24.         bigrEnergy = bigr.getEnergyStored()
  25.         until bigrEnergy > 9999900
  26.     end
  27. end
  28.  
  29. bigr.setActive(false)
  30. sleep(1)
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement