ethan_cai1786

TT0.0.1

Dec 31st, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. function dig1x1()
  2.     turtle.dig()
  3.     turtle.digUp()
  4.     turtle.forward()
  5. end
  6. function reF()
  7.     turtle.select(1)
  8. end
  9. function place(block)
  10.     turtle.select(2)
  11.     if block == "cobble" and turtle.getItemSpace() ~= 63 then
  12.         turtle.place()
  13. end
  14. end
  15. function placeUp(block)
  16.     turtle.select(2)
  17.     if block == "cobble" and turtle.getItemSpace() ~= 63 then
  18.         turtle.placeUp()
  19. end
  20. end
  21. print("Turtle Tunneler V0.0.1")
  22. io.write("How long should the tunnel be? ")
  23. length = io.read()
  24. curLength = 0
  25. while curLength ~= length do
  26.             dig1x1()
  27. end
Advertisement
Add Comment
Please, Sign In to add comment