Advertisement
praetorianer777

Untitled

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