1. for u=1,55 do
  2. local i = 1
  3. turtle.select(1)
  4. turtle.place()
  5. sleep(1)
  6. turtle.select(2)
  7. turtle.place()
  8. sleep(1)
  9. for i=1,10 do
  10.  turtle.dig()
  11.  turtle.digUp()
  12.  turtle.up()
  13.  print("Chooped a layer")
  14. end
  15.  
  16. for o=1,10 do
  17.  turtle.down()
  18. end
  19.  
  20. print("Tree chooped down, depositing wood...")
  21. turtle.turnLeft()
  22. turtle.turnLeft()
  23. turtle.select(4)
  24. turtle.drop()
  25. turtle.select(3)
  26. turtle.drop()
  27. turtle.turnLeft()
  28. turtle.turnLeft()
  29. print("Finished")
  30. end