94Lord

Untitled

Aug 26th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. -- ( Holz ) --
  2.  
  3. treeblock = "minecraft:log"
  4.  
  5. function Holz()
  6. while(turtle.forward()==false) do
  7. turtle.dig()
  8. turtle.forward()
  9. end
  10. success, data = turtle.inspectUp()
  11. while(success and data.name=treeblock) do
  12. turtle.digUp()
  13. turtle.up()
  14. end
  15.  
  16. while turtle.detectDown() == false do
  17. turtle.down()
  18. end
  19.  
  20. turtle.back()
  21.  
  22. end
Add Comment
Please, Sign In to add comment