Advertisement
praetorianer777

Untitled

Sep 1st, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --initialisierung
  2. richtung=true
  3. run=true
  4.  
  5. function fGRABEN()
  6.   while turtle.detectUp() == true do
  7.     turtle.digUp()
  8.   end
  9.   if turtle.detect() == true then
  10.     turtle.dig()
  11.   end
  12.   turtle.forward()
  13. end
  14.  
  15. while true do
  16.   for i=1,8 do
  17.     fGRABEN()
  18.   end
  19.   if richtung==true then
  20.       turtle.turnLeft()
  21.       fGRABEN()
  22.       turtle.turnLeft()
  23.       richtung=false
  24.   end
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement