Advertisement
praetorianer777

Untitled

Aug 31st, 2013
50
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.detect() == true then
  13.     turtle.dig()
  14.   end
  15.   turtle.forward()
  16.   if turtle.detectDown() == true then
  17.     turtle.placeDown()
  18.   end
  19. end
  20.  
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement