Advertisement
TheProdigy22

Untitled

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