Advertisement
Digitamz

Drill v2

Jun 24th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. local arg = { ... }
  2. local c = arg[1]
  3. local y = 0
  4. local x = 1
  5. for i=1,c do
  6. for i=1,x do
  7. turtle.forward()
  8. end
  9. local continue = true
  10. while continue do
  11. for i=1,4 do
  12. turtle.dig()
  13. turtle.turnRight()
  14. end
  15. turtle.digDown()
  16. local moved = turtle.down()
  17. if moved then
  18. y = y + 1
  19. else
  20. continue = false
  21. end
  22. end
  23.  
  24.  
  25.  
  26. for i=1,y do
  27. turtle.up()
  28. end
  29. y = 0
  30. turtle.turnRight()
  31. turtle.turnRight()
  32. for i=1,x do
  33. turtle.forward()
  34. end
  35. x = x + 3
  36.  
  37.  
  38. for i=1,16 do
  39. turtle.select(i)
  40. turtle.drop()
  41. end
  42. turtle.turnLeft()
  43. for i=1,16 do
  44. turtle.select(i)
  45. turtle.drop()
  46. end
  47. turtle.turnLeft()
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement