Advertisement
Sebi

Untitled

Mar 25th, 2012
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local function dig()
  2.     while turtle.detect() do
  3.         turtle.dig()
  4.         os.sleep(0.51)
  5.     end
  6. end
  7.  
  8. for cz = 1, 18 do
  9.     dig()
  10.     turtle.digDown()
  11.     turtle.forward()
  12.    
  13.     if(cz % 2 == 0) then
  14.         turtle.turnLeft()
  15.         turtle.dig()
  16.         turtle.select(1)
  17.         turtle.place()
  18.         turtle.turnRight()
  19.     end
  20.     dig()
  21.     turtle.digUp()
  22.     turtle.digDown()
  23.     turtle.down()
  24.     turtle.forward()
  25.     dig()
  26.     turtle.digDown()
  27.     turtle.down()
  28.     dig()
  29.     turtle.forward()
  30.     turtle.turnLeft()
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement