Advertisement
rungholt

tfill

Feb 24th, 2021 (edited)
976
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 times = 0
  19. print("x how long?: ")
  20. times = read()
  21.     for i = 1, times do
  22.         turtle.forward()
  23.         goDown()
  24.         detectBehind()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement