lego11

Untitled

Sep 18th, 2018
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function clear()
  2. term.clear()
  3. term.setCursorPos(1, 1)
  4. rs.setOutput("top", false)
  5. end
  6.  
  7. re = "Rotore in esaurimento"
  8.  
  9.  
  10. while true do
  11.  
  12. clear()
  13.  
  14. print("Guasti in corso: ")
  15. print("")
  16.  
  17.  
  18. if colors.test(redstone.getBundledInput("back"), colors.white) == true then
  19. print("Turbina 1.1: "..re)
  20. rs.setOutput("top", true)
  21. end
  22.  
  23. if colors.test(redstone.getBundledInput("back"), colors.orange) == true then
  24. print("Turbina 1.2: "..re)
  25. rs.setOutput("top", true)
  26. end
  27.  
  28.  
  29. if colors.test(redstone.getBundledInput("back"), colors.magenta) == true then
  30. print("Turbina 2.1: "..re)
  31. rs.setOutput("top", true)
  32. end
  33.  
  34.  
  35. if colors.test(redstone.getBundledInput("back"), colors.lightBlue) == true then
  36. print("Turbina 2.2: "..re)
  37. rs.setOutput("top", true)
  38. end
  39.  
  40.  
  41. if colors.test(redstone.getBundledInput("back"), colors.lime) == true then
  42. print("Turbina 3.1: "..re)
  43. rs.setOutput("top", true)
  44. end
  45.  
  46. if colors.test(redstone.getBundledInput("back"), colors.pink) == true then
  47. print("Turbina 3.2: "..re)
  48. rs.setOutput("top", true)
  49. end
  50.  
  51. if colors.test(redstone.getBundledInput("back"), colors.gray) == true then
  52. print("Turbina 4.1: "..re)
  53. rs.setOutput("top", true)
  54. end
  55.  
  56.  
  57. if colors.test(redstone.getBundledInput("back"), colors.lightGray) == true then
  58. print("Turbina 4.2: "..re)
  59. rs.setOutput("top", true)
  60. end
  61.  
  62. sleep(3)
  63.  
  64. end
Advertisement
Add Comment
Please, Sign In to add comment