Advertisement
Guest User

tflat

a guest
Mar 3rd, 2021
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local function goDown()
  2.     while turtle.detectDown() == false do
  3.         turtle.down()
  4.     end
  5. end
  6.  
  7. local function digStuff()
  8.     while turtle.detect() do
  9.         turtle.dig()
  10.         turtle.digUp()
  11.         turtle.up()
  12.     end
  13.         goDown()
  14.         turtle.forward()
  15. end
  16.  
  17. local times = 0
  18. print("Hello! How many times to run?: ")
  19. times = read()
  20.   for i = 1, times do
  21.     digStuff()
  22.     goDown()    
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement