Advertisement
bungeefield

computerrail

Sep 10th, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. local monitor = peripheral.wrap("back")
  2. monitor.clear()
  3. while true do
  4. y = rs.getBundledInput("back")
  5. sleep(1)
  6. if colors.test (y, colors.purple) == true then
  7. print ("*----@----@----@----@")
  8. sleep(1)
  9. elseif colors.test (y, colors.purple) == false then
  10. print ("@----@----@----@----@")
  11. sleep(1)
  12. end
  13. sleep(1)
  14. if colors.test (y, colors.red) == true then
  15. print ("@++++@----@----@----@")
  16. sleep(1)
  17. elseif colors.test (y, colors.red) == false then
  18. print ("@----@----@----@----@")
  19. sleep(1)
  20. end
  21. if colors.test (y, colors.orange) == true then
  22. print ("@----*----@----@----@")
  23. sleep(1)
  24. elseif colors.test (y, colors.orange) == false then
  25. print ("@----@----@----@----@")
  26. sleep(1)
  27. end
  28. if colors.test (y, colors.white) == true then
  29. print ("@----@++++@----@----@")
  30. sleep(1)
  31. elseif colors.test (y, colors.white) == false then
  32. print ("@----@----@----@----@")
  33. sleep(1)
  34. end
  35. if colors.test (y, colors.lime) == true then
  36. print ("@----@----*----@----@")
  37. sleep(1)
  38. elseif colors.test (y, colors.lime) == false then
  39. print ("@----@----@----@----@")
  40. sleep(1)
  41. end
  42. if colors.test (y, colors.blue) == true then
  43. print ("@----@----@++++@----@")
  44. sleep(1)
  45. elseif colors.test (y, colors.blue) == false then
  46. print ("@----@----@----@----@")
  47. sleep(1)
  48. end
  49. if colors.test (y, colors.cyan) == true then
  50. print ("@----@----@----*----@")
  51. sleep(1)
  52. elseif colors.test (y, colors.cyan) == false then
  53. print ("@----@----@----@----@")
  54. sleep(1)
  55. end
  56. if colors.test (y, colors.black) == true then
  57. print ("@----@----@----@++++@")
  58. sleep(1)
  59. elseif colors.test (y, colors.black) == false then
  60. print ("@----@----@----@----@")
  61. sleep(1)
  62. end
  63. if colors.test (y, colors.magenta) == true then
  64. print ("@----@----@----@----*")
  65. sleep(1)
  66. elseif colors.test (y, colors.magenta) == false then
  67. print ("@----@----@----@----@")
  68. sleep(1)
  69. end
  70. if colors.test (y, colors.pink) == true then
  71. print (" + /")
  72. sleep(1)
  73. elseif colors.test (y, colors.pink) == false then
  74. print (" \ /")
  75. sleep(1)
  76. end
  77. if colors.test (y, colors.green) == true then
  78. print (" \ +")
  79. sleep(1)
  80. elseif colors.test (y, colors.green) == false then
  81. print (" \ /")
  82. sleep(1)
  83. end
  84. if colors.test (y, colors.pink) == true then
  85. print (" + /")
  86. sleep(1)
  87. elseif colors.test (y, colors.pink) == false then
  88. print (" \ /")
  89. sleep(1)
  90. end
  91. if colors.test (y, colors.green) == true then
  92. print (" \ +")
  93. sleep(1)
  94. elseif colors.test (y, colors.green) == false then
  95. print (" \ /")
  96. sleep(1)
  97. end
  98. if colors.test (y, colors.brown) == true then
  99. print (" *-----@")
  100. sleep(1)
  101. elseif colors.test (y, colors.brown) == false then
  102. print (" @-----@")
  103. sleep(1)
  104. end
  105. if colors.test (y, colors.yellow) == true then
  106. print (" @+++++@")
  107. sleep(1)
  108. elseif colors.test (y, colors.yellow) == false then
  109. print (" @-----@")
  110. sleep(1)
  111. end
  112. if colors.test (y, colors.gray) == true then
  113. print (" @-----*")
  114. sleep(1)
  115. elseif colors.test (y, colors.gray) == false then
  116. print (" @-----@")
  117. sleep(1)
  118. end
  119. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement