Sayomie550

Untitled

Jul 15th, 2012
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local standby = 0
  2. local tree = 0
  3.  
  4. while turtle.detectDown() do
  5.  
  6. while redstone.getInput("back", true) do
  7. standby = 0
  8. tree = tree + 1
  9.  
  10. print( "Chopping Tree Number "..tree )
  11.  
  12. while turtle.detect() do
  13. turtle.dig()
  14. turtle.forward()
  15. end
  16.  
  17. while turtle.detectUp() do
  18. turtle.digUp()
  19. turtle.up()
  20. end
  21.  
  22. while not turtle.detectUp() and not turtle.detectDown() do
  23. turtle.down()
  24. end
  25.  
  26. redstone.setOutput("left", false)
  27.  
  28. turtle.back()
  29. turtle.select(1)
  30. turtle.place(1)
  31.  
  32. redstone.setOutput("left", true)
  33.  
  34. print( "Depositing Lumber to Obby Pipe" )
  35.  
  36. turtle.turnRight()
  37. turtle.select(2)
  38. turtle.drop()
  39. turtle.select(3)
  40. turtle.drop()
  41. turtle.turnLeft()
  42.  
  43. end
  44.  
  45. while not redstone.getInput("back", true) do
  46.  
  47. if standby == 0 then
  48. print( "Standby Mode" )
  49. standby = standby + 1
  50. tree = 0
  51. end
  52.  
  53. end
  54.  
  55. end
Advertisement
Add Comment
Please, Sign In to add comment