SHARE
TWEET

bigreactor

a guest Mar 20th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local component = require("component")
  2. local reactor = component.br_reactor
  3. local storage = component.draconicevolution_tileenergypylon
  4. local max = (storage.getMaxEnergy())
  5. local energy = (storage.getEnergy())
  6.  
  7. if reactor then
  8.   if reactor.getConnected() then
  9.     print("Successfully connected to the reactor.")
  10.   end
  11. else
  12.   print("Could not connect to the reactor.")
  13.   os.exit()
  14. end
  15.  
  16. print(max)
  17. print(energy)
  18. --[[
  19. while true do
  20.     if (energy / max) < 0.5 then
  21.         reactor.setActive(true)
  22.         print("Activated the reactor.")
  23.     end
  24.     if (energy / max) > 0.95 then
  25.         reactor.setActive(false)
  26.         print("Deactivated the reactor.")
  27.     end
  28. end]]
RAW Paste Data
Top