Craft4Cube

LIFT

Aug 7th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. max=17
  2. min=1
  3. OG1=17
  4. EG1=11
  5. KG1=7
  6. KG2=1
  7. cur=17
  8. redstone.setBundledOutput('back', 1)
  9. os.sleep(4.25)
  10. redstone.setBundledOutput('back', 0)
  11. cur=0
  12. print('LIFT.READY')
  13. while true do
  14. print('LIFT.CHK')
  15. if rs.testBundledInput('left', colours.lightBlue) then
  16. print('LIFT.Blue')
  17. if cur==OG1 then
  18. redstone.setBundledOutput('back', colours.orange)
  19. os.sleep(4.25)
  20. redstone.setBundledOutput('back', 0)
  21. end
  22. if cur==EG1 then
  23. redstone.setBundledOutput('back', colours.orange)
  24. os.sleep(2.75)
  25. redstone.setBundledOutput('back', 0)
  26. end
  27. if cur==KG1 then
  28. redstone.setBundledOutput('back', colours.orange)
  29. os.sleep(1.75)
  30. redstone.setBundledOutput('back', 0)
  31. end
  32. cur=KG2
  33. end
  34. if rs.testBundledInput('left', colours.yellow) then
  35. print('LIFT.YELLOW')
  36. if cur==OG1 then
  37. redstone.setBundledOutput('back', colours.orange)
  38. os.sleep(2.5)
  39. redstone.setBundledOutput('back', 0)
  40. end
  41. if cur==EG1 then
  42. redstone.setBundledOutput('back', colours.orange)
  43. os.sleep(1)
  44. redstone.setBundledOutput('back', 0)
  45. end
  46. if cur==KG2 then
  47. redstone.setBundledOutput('back', colours.white)
  48. os.sleep(1.75)
  49. redstone.setBundledOutput('back', 0)
  50. end
  51. cur=KG1
  52. end
  53. if rs.testBundledInput('left', colours.lime) then
  54. print('LIFT.LIME')
  55. if cur==OG1 then
  56. redstone.setBundledOutput('back', colours.white)
  57. os.sleep(1.5)
  58. redstone.setBundledOutput('back', 0)
  59. end
  60. if cur==KG1 then
  61. redstone.setBundledOutput('back', colours.white)
  62. os.sleep(1)
  63. redstone.setBundledOutput('back', 0)
  64. end
  65. if cur==KG2 then
  66. redstone.setBundledOutput('back', colours.white)
  67. os.sleep(2.5)
  68. redstone.setBundledOutput('back', 0)
  69. end
  70. cur=EG1
  71. end
  72. if rs.testBundledInput('left', colours.pink) then
  73. print('LIFT.PINK')
  74. if cur==EG1 then
  75. redstone.setBundledOutput('back', colours.white)
  76. os.sleep(1.75)
  77. redstone.setBundledOutput('back', 0)
  78. end
  79. if cur==KG1 then
  80. redstone.setBundledOutput('back', colours.white)
  81. os.sleep(2.75)
  82. redstone.setBundledOutput('back', 0)
  83. end
  84. if cur==KG2 then
  85. redstone.setBundledOutput('back', colours.white)
  86. os.sleep(4.25)
  87. redstone.setBundledOutput('back', 0)
  88. end
  89. cur=QG1
  90. end
  91. os.sleep(0.5)
  92. end
Advertisement
Add Comment
Please, Sign In to add comment