Advertisement
rungholt

tflatCli

Aug 15th, 2021 (edited)
1,285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 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 args = {...}
  18.     times = args[1]
  19.         for i = 1, times do
  20.         digStuff()
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement