Advertisement
DustinRosebery

treeFarm

Nov 25th, 2016
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local t = turtle
  2.  
  3. local function cut()
  4. t.digUp()
  5. t.dig()
  6. t.up()
  7. end
  8.  
  9. local function empty()
  10. for i 1 15 do
  11. t.select(i)
  12. t.drop()
  13. end
  14. end
  15.  
  16. local function farm()
  17. t.down()
  18. t.dig()
  19. t.select(16)
  20. t.place()
  21. t.up()
  22. while t.detect() == true do
  23. cut()
  24. end
  25. while not t.detectDown() do
  26. t.down()
  27. end
  28. t.turnLeft()
  29. empty()
  30. t.turnRight()
  31. t.up()
  32. end
  33.  
  34. while true do
  35. if t.detect() == true
  36. farm()
  37. end
  38.  
  39. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement