Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. local i = 0
  2.  
  3. function demitour()
  4. local k = 0
  5. for k=0,1,1 do
  6. turtle.turnLeft()
  7. end
  8. end
  9.  
  10. function poseTorche()
  11. if i == 10 then
  12. turtle.select(1)
  13. demitour()
  14. turtle.place()
  15. demitour()
  16. i = 0
  17. end
  18.  
  19.  
  20.  
  21. while true do
  22.  
  23. if turtle.detect() == true then
  24. turtle.dig()
  25. elseif turtle.detectUp() == true then
  26. turtle.digUp()
  27. elseif turtle.detectDown() == false then
  28. turtle.select(3)
  29. turtle.placeDown()
  30. else
  31. turtle.forward()
  32. i = i + 1
  33. end
  34. poseTorche()
  35.  
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement