Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. while true do
  2. redstone.setAnalogOutput("bottom", 0)
  3. turtle.select(1)
  4. while true do
  5. os.pullEvent("redstone") -- wait for a "redstone" event
  6. if rs.getInput("left") then -- check the input
  7. turtle.suckUp()
  8. end
  9. end
  10. while true do
  11. os.pullEvent("redstone") -- wait for a "redstone" event
  12. if rs.getInput("left") then -- check the input
  13. turtle.suckUp()
  14. end
  15. end
  16. while true do
  17. os.pullEvent("redstone") -- wait for a "redstone" event
  18. if rs.getInput("left") then -- check the input
  19. turtle.suckUp()
  20. end
  21. end
  22. turtle.select(5)
  23. while true do
  24. os.pullEvent("redstone") -- wait for a "redstone" event
  25. if rs.getInput("left") then -- check the input
  26. turtle.suckUp()
  27. end
  28. end
  29. while true do
  30. os.pullEvent("redstone") -- wait for a "redstone" event
  31. if rs.getInput("left") then -- check the input
  32. turtle.suckUp()
  33. end
  34. end
  35. while true do
  36. os.pullEvent("redstone") -- wait for a "redstone" event
  37. if rs.getInput("left") then -- check the input
  38. turtle.suckUp()
  39. end
  40. end
  41. turtle.select(9)
  42. while true do
  43. os.pullEvent("redstone") -- wait for a "redstone" event
  44. if rs.getInput("left") then -- check the input
  45. turtle.suckUp()
  46. end
  47. end
  48. while true do
  49. os.pullEvent("redstone") -- wait for a "redstone" event
  50. if rs.getInput("left") then -- check the input
  51. turtle.suckUp()
  52. end
  53. end
  54. while true do
  55. os.pullEvent("redstone") -- wait for a "redstone" event
  56. if rs.getInput("left") then -- check the input
  57. turtle.suckUp()
  58. end
  59. end
  60. turtle.craft()
  61. redstone.setAnalogOutput("bottom", 1)
  62. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement