Advertisement
Risk_exe

Untitled

Dec 2nd, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. function mineTree()
  2. turtle.dig();
  3. turtle.forward();
  4. x = true;
  5. while x do
  6. turtle.digUp()
  7. turtle.up();
  8. if (turtle.detectUp() == false) then
  9. x = false;
  10. end
  11. turtle.digUp();
  12. end
  13.  
  14. b = true;
  15. while b do
  16. b = turtle.down();
  17. end
  18. end
  19.  
  20. function scout()
  21. for i=1,30 do
  22. turtle.turnRight()
  23. for i=1, 30 do
  24. if (turtle.compare()) then
  25. mineTree();
  26. end
  27. if (turtle.detect()) then
  28. turtle.dig();
  29. end
  30. turtle.forward();
  31. end
  32. for i=1,30 do
  33. turtle.back();
  34. end
  35. turtle.turnLeft();
  36. end
  37. end
  38.  
  39. turtle.select(1)
  40. turtle.refuel();
  41. turtle.select(2);
  42.  
  43. scout();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement