Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Mining turtle Quarry program.
- -- Version 0.01 (Alpha)
- function drop()
- turtle.select(1)
- turtle.dropUp()
- turtle.select(2)
- turtle.dropUp()
- turtle.select(3)
- turtle.dropUp()
- turtle.select(4)
- turtle.dropUp()
- turtle.select(5)
- turtle.dropUp()
- turtle.select(6)
- turtle.dropUp()
- turtle.select(7)
- turtle.dropUp()
- turtle.select(8)
- turtle.dropUp()
- turtle.select(1)
- end
- function mine(Num)
- local x = 1
- repeat
- turtle.dig()
- turtle.forward()
- x = x+1
- until x == Num
- end
- function uright()
- turtle.turnRight()
- turtle.dig()
- turtle.forward()
- turtle.turnRight()
- end
- function uleft()
- turtle.turnLeft()
- turtle.dig()
- turtle.forward()
- turtle.turnLeft()
- end
- function cycle()
- turtle.digDown()
- turtle.down()
- mine(10)
- uright()
- mine(10)
- uleft()
- mine(10)
- uright()
- mine(10)
- uleft()
- mine(10)
- end
- function three()
- cycle()
- print("First cycle complete")
- cycle()
- print("Second cycle complete")
- cycle()
- print("third cycle complete")
- end
- cycle()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement