Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- print("how far?")
- local x
- local y
- x = read()
- y = 0
- print("mining " ..x.. " meters")
- turtle.select(1)
- for i = 1, x do
- turtle.dig()
- turtle.forward()
- turtle.digUp()
- y = y+1
- while y>5 do
- turtle.placeUp()
- y = y-6
- end
- end
- turtle.turnLeft()
- turtle.turnLeft()
- for i = 1, x do
- turtle.forward()
- end
- turtle.turnRight()
- for i = 2, 16 do
- turtle.select(i)
- turtle.drop()
- end
- turtle.turnRight()
- print("mining cycle completed")
Advertisement
Add Comment
Please, Sign In to add comment