Advertisement
Guest User

mine

a guest
Jul 13th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. local function check()
  2. turtle.select(16)
  3. if turtle.getItemCount() > 0 then
  4.  turtle.select(1)
  5.  turtle.turnRight()
  6.  turtle.turnRight()
  7.  turtle.place()
  8.  for i = 2, 16 do
  9.   turtle.select(i)
  10.   turtle.drop()
  11.  end
  12.  sleep(5)
  13.  turtle.select(1)
  14.  turtle.dig()
  15.  turtle.turnRight()
  16.  turtle.turnRight()
  17. end
  18. turtle.select(1)
  19. end
  20.  
  21. local function go()
  22. turtle.dig()
  23. check()
  24. sleep(1)
  25. while turtle.detect() == true do
  26.  turtle.dig()
  27.  check()
  28. end
  29. turtle.forward()
  30. turtle.digUp()
  31. check()
  32. end
  33.  
  34. local function turn()
  35. turtle.turnLeft()
  36. go()
  37. go()
  38. go()
  39. turtle.turnLeft()
  40. end
  41.  
  42. local function turn2()
  43. turtle.turnRight()
  44. go()
  45. go()
  46. go()
  47. turtle.turnRight()
  48. end
  49.  
  50. local function strip()
  51. for i = 0, 100 do
  52.  go()
  53. end
  54. end
  55.  
  56. for i = 0, 50 do
  57.  strip()
  58.  turtle.turnLeft()
  59.  go()
  60.  turtle.turnLeft()
  61.  strip()
  62.  turtle.turnRight()
  63.  go()
  64.  turtle.turnRight()
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement