Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- if args[1] then
- for i=1,args[1] do
- Mine()
- end
- end
- function Mine()
- for i=1,50 do
- if turtle.getFuelLevel() < 1 then
- turtle.refuel(1)
- end
- local success, data = turtle.inspect()
- if success then
- turtle.dig()
- end
- turtle.forward()
- local success, data = turtle.inspectUp()
- if success then
- turtle.digUp()
- end
- end
- for i=1,50 do
- if turtle.getFuelLevel() < 1 then
- turtle.refuel(1)
- end
- turtle.back()
- end
- turtle.turnLeft()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.turnRight()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement