Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local amt = args[1]
- local input = ""
- if #args ~= 1 then
- print "Usage: mine <amt in 1/2 chunks>"
- os.exit()
- end
- print "Put " .. amt .. " into slot 1 of this turtle."
- print "To start, press \"y\""
- while input~="y" do
- input = read()
- end
- for t=1,amt do
- for i=1,2 do
- for j=1,4 do
- while turtle.detect() do
- turtle.dig()
- end
- if i==2 and j==3 then
- turtle.select(1)
- turtle.down()
- turtle.dig()
- turtle.placeUp()
- turtle.forward()
- turtle.up()
- else
- turtle.forward()
- turtle.digDown()
- end
- end
- turtle.turnLeft()
- for i=1,2 do
- for i=1,5 do
- while turtle.detect() do
- turtle.dig()
- end
- turtle.forward()
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i=1,5 do
- turtle.forward()
- end
- end
- turtle.turnRight()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement