Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. local x, y, z = 15, 6, 30
  2. local left = true;
  3.  
  4. while (y > 0) do
  5. y=y-1;
  6.  
  7. while (x > 0) do
  8. for _ = 1, z-1 do
  9. turtle.dig();
  10. turtle.forward();
  11. end; x=x-1;
  12.  
  13. if (x > 0) then
  14. local func = (left and turtle.turnLeft) or turtle.turnRight;
  15.  
  16. func();
  17. turtle.dig();
  18. turtle.forward();
  19. func();
  20.  
  21. for _ = 1, z-1 do
  22. turtle.dig();
  23. turtle.forward();
  24. end; x=x-1;
  25.  
  26. if (x > 0) then
  27. local func = (left and turtle.turnRight) or turtle.turnLeft;
  28.  
  29. func();
  30. turtle.dig();
  31. turtle.forward();
  32. func();
  33. end
  34. end
  35. end;
  36.  
  37. if (y > 0) then
  38. turtle.digUp();
  39. turtle.up();
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement