Advertisement
01ste02

Reactor

Oct 25th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. shell.run("clear")
  2. --loop forever - terminate with ctrl-t
  3. print("Nuclear monitoring system")
  4. while true do
  5. os.pullEvent("redstone")
  6.  
  7.   local redState=rs.getInput("back")
  8. local test=rs.getInput("right")
  9. if test == true then
  10. shell.run("clear")
  11. sleep(1)
  12.   if redState == true then
  13.     print("Reactor on")
  14.     print("Reactor cooling mode: Normal")
  15.     print("Reactor temperature: Normal")
  16.   else
  17.   print("Reactor off")  
  18.   print("Reactor cooling mode: Low")
  19.   print("Reactor temperature: Normal")
  20.   end
  21.   else
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement