ashotnsta2012

Untitled

Jan 17th, 2021 (edited)
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. reactor = peripheral.wrap("bottom")
  2.  
  3. --info = reactor.getReactorInfo()
  4.  
  5.  
  6. while true do
  7.   info = reactor.getReactorInfo()
  8.  
  9.   print(info.temperature)
  10.  
  11.   if info.temperature <= 2000 then
  12.     reactor.chargeReactor()
  13.   end
  14.  
  15.   if info.temperature == 2000 then
  16.     reactor.activateReactor()
  17.   end
  18.  
  19.   if info.temperature >= 5000 then
  20.     reactor.stopReactor()
  21.   end
  22.  
  23.   sleep(.1)
  24.  
  25. end
Add Comment
Please, Sign In to add comment