Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function GetDistance()
- print("Hello! How far should I dig?")
- return read()
- end
- local Dist = GetDistance()
- print("Thanks! Digging"..Dist.." Blocks!")
- local i = 1
- repeat
- write("level #")
- write(i)
- write(" of 64 \n")
- --STAGE1
- if turtle.detect()
- then
- turtle.dig()
- turtle.down()
- if turtle.detect()
- then
- turtle.dig()
- turtle.forward()
- turtle.up()
- i = i + 1
- else
- end
- else
- print("Mining Run Complete!")
- i = 64
- end
- until i == Dist
Advertisement
Add Comment
Please, Sign In to add comment