praetorianer777

Untitled

Aug 31st, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. turtle.select(16)
  2. richtung=true
  3. run=true
  4.  
  5. function fGRABEN()
  6.   if turtle.detectUp() == true then
  7.     turtle.digUp()
  8.   end
  9.   if turtle.detect() == true then
  10.     turtle.dig()
  11.   else
  12.     turtle.forward()
  13.   end
  14.   turtle.forward()
  15.   if turtle.detectDown() == true then
  16.     turtle.placeDown()
  17.   end
  18. end
  19.  
  20. while run==true do
  21.   for i=1,10 do
  22.     fGRABEN()
  23.   end
  24.   if richtung==true then
  25.       turtle.turnLeft()
  26.       fGRABEN()
  27.       turtle.turnLeft()
  28.       richtung=false
  29.     else
  30.       turtle.turnRight()
  31.       fGRABEN()
  32.       turtle.turnRight()
  33.       richtung=true
  34.   end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment