Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lastempty = function()
- turtle.digUp()
- turtle.select(2)
- turtle.placeUp()
- for i = 3, 16, 1
- do
- turtle.select(i)
- turtle.dropUp(64)
- end
- turtle.select(2)
- turtle.digUp()
- turtle.select(1)
- end
- empty = function()
- if turtle.getItemCount(15) >= 1 then
- turtle.digUp()
- turtle.select(2)
- turtle.placeUp()
- for i = 3, 16, 1
- do
- turtle.select(i)
- turtle.dropUp(64)
- end
- turtle.select(2)
- turtle.digUp()
- turtle.select(1)
- end
- end
- dig = function(amount)
- for i = 0, amount, 1
- do
- empty()
- turtle.dig()
- end
- lastempty()
- end
- term.write("Select Amount of Blocks Mined: ")
- local Amount = read()
- dig(Amount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement