Guest User

Untitled

a guest
Dec 15th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. local green=false
  2. local white=false
  3. local yellow=false
  4. local blue=false
  5.  
  6. while true do
  7. if rs.testBundledInput("right",colors.green) then
  8. if not green then
  9. mon = peripheral.wrap("top")
  10. mon.clear()
  11. mon.setCursorPos(1,1)
  12. mon.write("Top Floor")
  13. redstone.setBundledOutput("left", colors.green)
  14. green=true
  15. end
  16. else
  17. green=false
  18. end
  19.  
  20. if rs.testBundledInput("right",colors.white) then
  21. if not white then
  22. mon = peripheral.wrap("top")
  23. mon.clear()
  24. mon.setCursorPos(1,1)
  25. mon.write("Bottom Floor")
  26. redstone.setBundledOutput("left", colors.white)
  27. white=true
  28. end
  29. else
  30. white=false
  31. end
  32.  
  33. if rs.testBundledInput("right",colors.blue) then
  34. if not blue then
  35. mon = peripheral.wrap("top")
  36. mon.clear()
  37. mon.setCursorPos(1,1)
  38. mon.write("3rd Floor")
  39. redstone.setBundledOutput("left", colors.blue)
  40. blue=true
  41. end
  42. else
  43. blue=false
  44. end
  45.  
  46. if rs.testBundledInput("right",colors.yellow) then
  47. if not yellow then
  48. mon = peripheral.wrap("top")
  49. mon.clear()
  50. mon.setCursorPos(1,1)
  51. mon.write("2nd Floor")
  52. redstone.setBundledOutput("left", colors.yellow)
  53. yellow=true
  54. end
  55. else
  56. yellow=false
  57. end
  58. sleep(0.5)
  59. end
Advertisement
Add Comment
Please, Sign In to add comment