xXm0dzXx

Untitled

May 23rd, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. timesDown = 0
  2.  
  3. function comeup()
  4. for i=1,timesDown
  5. do
  6. turtle.digUp()
  7. turtle.up()
  8. end
  9. end
  10.  
  11. function bedrockcheck()
  12. if not turtle.digDown() then
  13. comeup()
  14. break
  15. end
  16. end
  17.  
  18. function godown()
  19. while turtle.detectDown() do
  20. turtle.digDown()
  21. turtle.down()
  22. timesDown = timesDown+1
  23. end
  24. end
  25.  
  26. function cavefind()
  27. while not turtle.detectDown() do
  28. comeup()
  29. end
  30. end
  31.  
  32. godown()
  33. cavefind()
  34. bedrockcheck()
  35. comeup()
Advertisement
Add Comment
Please, Sign In to add comment