Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 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. function poseTorche()
  10. if i == 10 then
  11. turtle.select(1)
  12. demitour()
  13. turtle.place()
  14. demitour()
  15. i = 0
  16. end
  17. end
  18. function couloir()
  19. if turtle.detect() == true then
  20. turtle.dig()
  21. elseif turtle.detectUp() == true then
  22. turtle.digUp()
  23. elseif turtle.detectDown() == false then
  24. turtle.select(3)
  25. turtle.placeDown()
  26. else
  27. turtle.forward()
  28. i = i + 1
  29. end
  30. end
  31.  
  32.  
  33. while true do
  34.  
  35. couloir()
  36. poseTorche()
  37.  
  38.  
  39.  
  40. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement