rungholt

tfillcli

Aug 18th, 2021
1,303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local function detectBehind()
  2.         turtle.turnRight()
  3.         turtle.turnRight()
  4.     while turtle.detect() do
  5.         turtle.up()
  6.         turtle.placeDown()
  7.     end
  8.         turtle.turnRight()
  9.         turtle.turnRight()
  10. end  
  11.  
  12. local function goDown()
  13.     while turtle.detectDown() == false do
  14.         turtle.down()
  15.     end
  16. end
  17.  
  18. local args = {...}
  19.     times = args[1]
  20.         for i = 1, times do
  21.             turtle.forward()
  22.             goDown()
  23.             detectBehind()
  24. end
Advertisement
Add Comment
Please, Sign In to add comment