Advertisement
Guest User

Notaus

a guest
Feb 25th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. term.clear()
  2.  
  3.  
  4. reactor = peripheral.find("draconic_reactor")
  5. --gate = peripheral.find("flux_gate")
  6.  
  7.  
  8. function NotStop()
  9.   reactor.stopReactor()
  10. end
  11. while true do
  12.   info = reactor.getReactorInfo()
  13.   term.clear()
  14.   term.setCursorPos(1,1)
  15.   print(info["status"])
  16.  
  17.  
  18.   if info["status"] == "online" then
  19.     print(info["temperature"],"   ",info["fieldStrength"])
  20.     if (info["temperature"] > 8000) or (info["fieldStrength"] < 15000000) then
  21.      
  22.       NotStop()
  23.      
  24.      
  25.  
  26.     end
  27.    
  28.    
  29.    
  30.   end
  31.  
  32.    
  33.  
  34.   os.sleep(0.2)
  35.  
  36. end
  37. read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement