Advertisement
Guest User

ComputerCraft Tekkit Elevator

a guest
Mar 16th, 2013
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local red=false
  2. local blue=false
  3. local green=false
  4. local black=false
  5. local white=false
  6.  
  7. while true do
  8. if rs.testBundledInput("right",colors.red) then
  9. if not red then
  10. redstone.setBundledOutput("left", colors.red)
  11. red=true
  12. end
  13. else
  14. red=false
  15. end
  16.  
  17. if rs.testBundledInput("right",colors.blue) then
  18. if not blue then
  19. redstone.setBundledOutput("left", colors.blue)
  20. blue=true
  21. end
  22. else
  23. blue=false
  24. end
  25.  
  26. if rs.testBundledInput("right",colors.green) then
  27. if not green then
  28. redstone.setBundledOutput("left", colors.green)
  29. green=true
  30. end
  31. else
  32. green=false
  33. end
  34.  
  35. if rs.testBundledInput("right",colors.black) then
  36. if not black then
  37. redstone.setBundledOutput("left", colors.black)
  38. black=true
  39. end
  40. else
  41. black=false
  42. end
  43.  
  44. if rs.testBundledInput("right",colors.white) then
  45. if not white then
  46. redstone.setBundledOutput("left", colors.white)
  47. white=true
  48. end
  49. else
  50. white=false
  51. end
  52. sleep(0.5)
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement