Advertisement
ExpiredVisions

chiken reactos

Jul 22nd, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. local args = {...}
  2. local reactor1 = peripheral.wrap("BigReactors-Reactor_3")
  3. local reactor2 = peripheral.wrap("BigReactors-Reactor_4")
  4.  
  5. term.redirect(peripheral.wrap("right"))
  6. term.setBackgroundColor(128)
  7. term.clear()
  8. term.setCursorPos(1, 1)
  9. term.setTextColor(colors.white)
  10.  
  11. function displayRS()
  12. while true do
  13. if (reactor1.getActive) then
  14. term.setTextColor(colors.white)
  15. term.setCursorPos(1, 1)
  16. term.write("Reactor 1 is")
  17. term.setTextColor(colors.green)
  18. term.write(" active")
  19. else
  20. term.setTextColor(colors.white)
  21. term.setCursorPos(1, 1)
  22. term.setTextColor(colors.red)
  23. term.write("Reactor 1 is not active")
  24. end
  25. if (reactor2.getActive) then
  26. term.setTextColor(colors.white)
  27. term.setCursorPos(1, 2)
  28. term.write("Reactor 2 is")
  29. term.setTextColor(colors.green)
  30. term.write(" active")
  31. else
  32. term.setTextColor(colors.white)
  33. term.setCursorPos(1, 2)
  34. term.setTextColor(colors.red)
  35. term.write("Reactor 2 is not active")
  36. end
  37.  
  38. term.setTextColor(colors.white)
  39. term.setCursorPos(1, 5)
  40. term.write("Reactor one fuel level= "..reactor1.getFuelAmount().."mB")
  41. term.setCursorPos(1, 4)
  42. term.write("Reactor two fuel level= "..reactor2.getFuelAmount().."mB")
  43.  
  44. sleep(1)
  45. end
  46. end
  47.  
  48. displayRS()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement