Damaged

TunnelBot2

Jul 23rd, 2012
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function DigandMove()
  2.  turtle.dig()
  3.  os.sleep( 1 )
  4.  while turtle.detect() do
  5.   turtle.dig()
  6.   os.sleep( 1 )
  7.  end
  8.  turtle.forward()
  9. end
  10.  
  11. for t=1,30000 do
  12.  DigandMove()
  13.  turtle.turnRight()
  14.  turtle.digDown()
  15.  for i=1,3 do
  16.   DigandMove()
  17.   turtle.digDown()
  18.   if i < 3 then
  19.    turtle.digUp()
  20.    os.sleep( 1 )
  21.    while turtle.detectUp() do
  22.     turtle.digUp()
  23.     os.sleep( 1 )
  24.    end
  25.   end
  26.  end
  27.  for i=1,9 do
  28.   turtle.drop()
  29.  end
  30.  turtle.turnLeft()
  31.  DigandMove()
  32.  turtle.turnLeft()
  33.  turtle.digDown()
  34.  for i=1,3 do
  35.   DigandMove()
  36.   turtle.digDown()
  37.   if i<3 then
  38.    turtle.digUp()
  39.    os.sleep( 1 )
  40.    while turtle.detectUp() do
  41.     turtle.digUp()
  42.     os.sleep( 1 )
  43.    end
  44.   end
  45.  end
  46.  for i=1,9 do
  47.   turtle.drop()
  48.  end
  49.  turtle.turnRight()
  50. end
Advertisement
Add Comment
Please, Sign In to add comment