Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dig1x1()
- turtle.dig()
- turtle.digUp()
- turtle.forward()
- end
- function reF()
- turtle.select(1)
- end
- function place(block)
- turtle.select(2)
- if block == "cobble" and turtle.getItemSpace() ~= 63 then
- turtle.place()
- end
- end
- function placeUp(block)
- turtle.select(2)
- if block == "cobble" and turtle.getItemSpace() ~= 63 then
- turtle.placeUp()
- end
- end
- print("Turtle Tunneler V0.0.1")
- io.write("How long should the tunnel be? ")
- length = io.read()
- curLength = 0
- while curLength ~= length do
- dig1x1()
- end
Advertisement
Add Comment
Please, Sign In to add comment