NicoReimer

test

Jan 24th, 2021 (edited)
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. local laenge = 8
  2.  
  3. function nachVorne()
  4.    
  5.     for i = 1, 3, 1 do
  6.         if turtle.detect() then
  7.             turtle.dig()
  8.         end
  9.         turtle.forward()
  10.  
  11.         if turtle.detectUp() then
  12.             turtle.digUp()
  13.         end
  14.     end
  15.  
  16. end
  17.  
  18. function gang()
  19.  
  20.     for i = 1, laenge, 1 do
  21.         if turtle.detect() then
  22.             turtle.dig()
  23.         end
  24.         turtle.forward()
  25.    
  26.         if turtle.detectUp() then
  27.             turtle.digUp()
  28.         end
  29.     end
  30.  
  31.     turtle.turnLeft()
  32.     turtle.turnLeft()
  33.  
  34.     for i = 1, laenge, 1 do
  35.         if turtle.detect() then
  36.             turtle.dig()
  37.         end
  38.         turtle.forward()
  39.     end
  40.  
  41. end
  42.  
  43. nachVorne()
  44. turtle.turnLeft()
  45. gang()
  46. gang()
  47. turtle.turnRight()
Advertisement
Add Comment
Please, Sign In to add comment