Advertisement
Guest User

stripe

a guest
Oct 23rd, 2014
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1.  
  2.  
  3. turtle.up()
  4.  
  5. function dig()
  6.  turtle.dig()
  7.  sleep(0.2)
  8.  if turtle.detect() == true then
  9.   dig()
  10.   print("Gravel")
  11.  end
  12. end
  13.  
  14. function digUp()
  15.  turtle.digUp()
  16.  sleep(0.2)
  17.  if turtle.detectUp() == true then
  18.   digUp()
  19.   print("Gravel")
  20.  end
  21. end
  22.  
  23. function digDown()
  24.  turtle.digDown()
  25. end
  26.  
  27. x=0
  28.  
  29. while x < 64 do
  30.  dig()
  31.  turtle.forward()
  32.  digUp()
  33.  digDown()
  34.  x=x+1
  35. end
  36.  
  37. turtle.up()
  38. turtle.turnRight()
  39. turtle.turnRight()
  40. while x > 0 do
  41.  turtle.forward()
  42.  x=x-1
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement