portablejim

Tunnel program

Mar 9th, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1.  
  2. function dig()
  3.     while turtle.detectUp() do
  4.         turtle.digUp()
  5.     end
  6.     while turtle.detect() do
  7.         turtle.dig()
  8.     end
  9.     turtle.digDown()
  10. end
  11.  
  12. for i=1,128 do
  13.     dig()
  14.     turtle.forward()
  15. end
Advertisement
Add Comment
Please, Sign In to add comment