Advertisement
appleguy1999

Treecapitator farm

Apr 11th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. function main()
  2. turtle.select(1)
  3. if turtle.compare() then
  4. redstone.setOutput("left", true)
  5. sleep(15)
  6. redstone.setOutput("left", false)
  7. turtle.up()
  8. turtle.select(2)
  9. turtle.forward()
  10. turtle.placeDown()
  11. turtle.turnLeft()
  12. turtle.forward()
  13. turtle.placeDown()
  14. turtle.turnRight()
  15. turtle.forward()
  16. turtle.placeDown()
  17. turtle.turnRight()
  18. turtle.forward()
  19. turtle.placeDown()
  20. turtle.turnRight()
  21. turtle.forward()
  22. turtle.forward()
  23. turtle.down()
  24.  
  25. turtle.select(1)
  26. a = turtle.getItemCount(1) - 1
  27. if a == -1 then
  28. a = 0
  29. end
  30. if a == 0 then
  31. a = 0
  32. end
  33. turtle.drop(a)
  34.  
  35. turtle.select(2)
  36. b = turtle.getItemCount(2) - 1
  37. if b == -1 then
  38. b = 0
  39. end
  40. if b == 0 then
  41. b = 0
  42. end
  43. turtle.drop(b)
  44.  
  45. turtle.select(3)
  46. turtle.drop()
  47.  
  48. turtle.turnLeft()
  49. turtle.turnLeft()
  50.  
  51. end
  52. sleep(120)
  53. turtle.suckUp()
  54. main()
  55. end
  56.  
  57. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement