Sayomie550

Untitled

Jan 15th, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.84 KB | None | 0 0
  1. --[[
  2. Water Mill Hole Digger V1.0.0
  3. --]]
  4. local depth = 0
  5.  
  6. term.clear()
  7. term.setCursorPos(1,)
  8.  
  9. function dig()
  10.     while turtle.down() do
  11.         turtle.digDown()
  12.         depth = depth + 1
  13.     else while depth ~= 0 do
  14.         turtle.up()
  15.     end
  16. end
  17.  
  18. function threeline()
  19.     dig()
  20.     turtle.forward()
  21.     dig()
  22.     turtle.forward()
  23.     dig()
  24. end
  25.  
  26. function fiveline()
  27.     dig()
  28.     turtle.forward()
  29.     dig()
  30.     turtle.forward()
  31.     dig()
  32.     turtle.forward()
  33.     dig()
  34.     turtle.forward()
  35.     dig()
  36. end
  37.  
  38. threeline()
  39.  
  40. turtle.turnRight()
  41. turtle.forward
  42. turtle.turnRight()
  43. turtle.back()
  44.  
  45. fiveline()
  46.  
  47. turtle.turtle.turnLeft()
  48. turtle.forward()
  49. turtle.turnLeft()
  50.  
  51. fiveline()
  52.  
  53. turtle.turnRight()
  54. turtle.forward()
  55. turtle.turnRight()
  56.  
  57. fiveline()
  58.  
  59. turtle.turnLeft()
  60. turtle.forward()
  61. turtle.turnRight()
  62. turtle.forward()
  63. turtle.turnLeft()
  64.  
  65. threelane()
  66.  
  67. print("Finished")
Advertisement
Add Comment
Please, Sign In to add comment