TheCountryGamer

Temp Turtle Script

Aug 24th, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. -- 3h, 22l, 12w
  2. -- for each layer (3)
  3. -- for each column (12)
  4. -- mine out each row (22)
  5. function fwd()
  6.    if turtle.detect() then
  7.       turtle.dig()
  8.    end
  9.    turtle.forward()
  10. end
  11. function left()
  12.    turtle.turnLeft()
  13. end
  14. function right()
  15.    turtle.turnRight()
  16. end
  17.  
  18. -- Main Program
  19. left()
  20. for k=1, 3 do
  21. for l=1, 11 do
  22. for c=1, 11 do
  23.    fwd()
  24. end
  25. right()
  26. fwd()
  27. right()
  28. for c=1, 11 do
  29. fwd()
  30. end
  31. left()
  32. fwd()
  33. left()
  34. end
  35. right()
  36. for i=1, 21 do
  37. fwd()
  38. end
  39. right()
  40. end
Advertisement
Add Comment
Please, Sign In to add comment