Advertisement
TheProdigy22

Untitled

Oct 17th, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. local args = {...}
  2. local amt = args[1]
  3. local input = ""
  4. if #args ~= 1 then
  5. print("Usage: mine <amt in 1/2 chunks>")
  6. do return end
  7. end
  8. turtle.select(1)
  9. print("Put " .. amt .. " torches into slot 1 of this turtle.")
  10. print("To start, press \"y\"")
  11. while input~="y" do
  12. input = read()
  13. end
  14. for t=1,amt do
  15. for i=1,2 do
  16. for j=1,4 do
  17. while turtle.detect() do
  18. turtle.dig()
  19. end
  20. if i==2 and j==3 then
  21. turtle.select(1)
  22. turtle.down()
  23. turtle.dig()
  24. turtle.placeUp()
  25. turtle.forward()
  26. turtle.up()
  27. else
  28. turtle.forward()
  29. turtle.digDown()
  30. end
  31. end
  32. turtle.turnLeft()
  33. for i=1,2 do
  34. for i=1,5 do
  35. while turtle.detect() do
  36. turtle.dig()
  37. end
  38. turtle.forward()
  39. end
  40. turtle.turnLeft()
  41. turtle.turnLeft()
  42. for i=1,5 do
  43. turtle.forward()
  44. end
  45. end
  46. turtle.turnRight()
  47. end
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement