Advertisement
Guest User

Inputy

a guest
Apr 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. -- strona monitora
  2. mon = peripheral.wrap("top")
  3. -- strona kabla
  4. strona = "bottom"
  5. -- Maszyny
  6. -- np. txt1 = "reaktor1"
  7. txt1 = "" -- White
  8. txt2 = "" -- Orange
  9. txt3 = "" -- Magenta
  10. txt4 = "" -- Light blue
  11. txt5 = "" -- Yellow
  12. txt6 = "" -- Lime
  13. txt7 = "" -- Pink
  14. txt8 = "" -- Gray
  15. txt9 = "" -- Light gray
  16. txt10 = "" -- Cyan
  17. txt11 = "" -- Purple
  18. txt12 = "" -- Blue
  19. txt13 = "" -- Brown
  20. txt14 = "" -- Green
  21. txt15 = "" -- Red
  22. txt16 = "" -- Black
  23.  
  24. while true do
  25. mon.clear()
  26. mon.setCursorPos(4,1)
  27. mon.write(txt1)
  28. mon.setCursorPos(4,2)
  29. mon.write(txt2)
  30. mon.setCursorPos(4,3)
  31. mon.write(txt3)
  32. mon.setCursorPos(4,4)
  33. mon.write(txt4)
  34. mon.setCursorPos(4,5)
  35. mon.write(txt5)
  36. mon.setCursorPos(4,6)
  37. mon.write(txt6)
  38. mon.setCursorPos(4,7)
  39. mon.write(txt7)
  40. mon.setCursorPos(4,8)
  41. mon.write(txt8)
  42. mon.setCursorPos(4,9)
  43. mon.write(txt9)
  44. mon.setCursorPos(4,10)
  45. mon.write(txt10)
  46. mon.setCursorPos(4,11)
  47. mon.write(txt11)
  48. mon.setCursorPos(4,12)
  49. mon.write(txt12)
  50. mon.setCursorPos(4,13)
  51. mon.write(txt13)
  52. mon.setCursorPos(4,14)
  53. mon.write(txt14)
  54. mon.setCursorPos(4,15)
  55. mon.write(txt15)
  56. mon.setCursorPos(4,16)
  57. mon.write(txt16)
  58. color = redstone.getBundledInput(strona)
  59. if colors.test(color, colors.white) == true then
  60. mon.setCursorPos(1,1)
  61. mon.write("ON")
  62. elseif colors.test(color, colors.white) == false then
  63. mon.setCursorPos(1,1)
  64. mon.write("OFF")
  65. end
  66. if colors.test(color, colors.orange) == true then
  67. mon.setCursorPos(1,2)
  68. mon.write("ON")
  69. elseif colors.test(color, colors.orange) == false then
  70. mon.setCursorPos(1,2)
  71. mon.write("OFF")
  72. end
  73. if colors.test(color, colors.magenta) == true then
  74. mon.setCursorPos(1,3)
  75. mon.write("ON")
  76. elseif colors.test(color, colors.magenta) == false then
  77. mon.setCursorPos(1,3)
  78. mon.write("OFF")
  79. end
  80. if colors.test(color, colors.lightBlue) == true then
  81. mon.setCursorPos(1,4)
  82. mon.write("ON")
  83. elseif colors.test(color, colors.lightBlue) == false then
  84. mon.setCursorPos(1,4)
  85. mon.write("OFF")
  86. end
  87. if colors.test(color, colors.yellow) == true then
  88. mon.setCursorPos(1,5)
  89. mon.write("ON")
  90. elseif colors.test(color, colors.yellow) == false then
  91. mon.setCursorPos(1,5)
  92. mon.write("OFF")
  93. end
  94. if colors.test(color, colors.lime) == true then
  95. mon.setCursorPos(1,6)
  96. mon.write("ON")
  97. elseif colors.test(color, colors.lime) == false then
  98. mon.setCursorPos(1,6)
  99. mon.write("OFF")
  100. end
  101. if colors.test(color, colors.pink) == true then
  102. mon.setCursorPos(1,7)
  103. mon.write("ON")
  104. elseif colors.test(color, colors.pink) == false then
  105. mon.setCursorPos(1,7)
  106. mon.write("OFF")
  107. end
  108. if colors.test(color, colors.gray) == true then
  109. mon.setCursorPos(1,8)
  110. mon.write("ON")
  111. elseif colors.test(color, colors.gray) == false then
  112. mon.setCursorPos(1,8)
  113. mon.write("OFF")
  114. end
  115. if colors.test(color, colors.lightGray) == true then
  116. mon.setCursorPos(1,9)
  117. mon.write("ON")
  118. elseif colors.test(color, colors.lightGray) == false then
  119. mon.setCursorPos(1,9)
  120. mon.write("OFF")
  121. end
  122. if colors.test(color, colors.cyan) == true then
  123. mon.setCursorPos(1,10)
  124. mon.write("ON")
  125. elseif colors.test(color, colors.cyan) == false then
  126. mon.setCursorPos(1,10)
  127. mon.write("OFF")
  128. end
  129. if colors.test(color, colors.purple) == true then
  130. mon.setCursorPos(1,11)
  131. mon.write("ON")
  132. elseif colors.test(color, colors.purple) == false then
  133. mon.setCursorPos(1,11)
  134. mon.write("OFF")
  135. end
  136. if colors.test(color, colors.blue) == true then
  137. mon.setCursorPos(1,12)
  138. mon.write("ON")
  139. elseif colors.test(color, colors.blue) == false then
  140. mon.setCursorPos(1,12)
  141. mon.write("OFF")
  142. end
  143. if colors.test(color, colors.brown) == true then
  144. mon.setCursorPos(1,13)
  145. mon.write("ON")
  146. elseif colors.test(color, colors.brown) == false then
  147. mon.setCursorPos(1,13)
  148. mon.write("OFF")
  149. end
  150. if colors.test(color, colors.green) == true then
  151. mon.setCursorPos(1,14)
  152. mon.write("ON")
  153. elseif colors.test(color, colors.green) == false then
  154. mon.setCursorPos(1,14)
  155. mon.write("OFF")
  156. end
  157. if colors.test(color, colors.red) == true then
  158. mon.setCursorPos(1,15)
  159. mon.write("ON")
  160. elseif colors.test(color, colors.red) == false then
  161. mon.setCursorPos(1,15)
  162. mon.write("OFF")
  163. end
  164. if colors.test(color, colors.black) == true then
  165. mon.setCursorPos(1,16)
  166. mon.write("ON")
  167. elseif colors.test(color, colors.black) == false then
  168. mon.setCursorPos(1,16)
  169. mon.write("OFF")
  170. end
  171. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement