Sayomie550

Untitled

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