Damaged

TunnelBot3

Jul 24th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.89 KB | None | 0 0
  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=0,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.  turtle.turnLeft()
  28.  DigandMove()
  29.  turtle.turnLeft()
  30.  turtle.digDown()
  31.  for i=1,3 do
  32.   DigandMove()
  33.   turtle.digDown()
  34.   if i<3 then
  35.    turtle.digUp()
  36.    os.sleep( 1 )
  37.    while turtle.detectUp() do
  38.     turtle.digUp()
  39.     os.sleep( 1 )
  40.    end
  41.   end
  42.  end
  43.  turtle.turnLeft()
  44.  for x=0,t do
  45.   turtle.forward()
  46.   turtle.forward()
  47.  end
  48.  for i=1,9 do
  49.   turtle.drop()
  50.  end
  51.  turtle.turnLeft()
  52.  turtle.turnLeft()
  53.  for x=0,t do
  54.   turtle.forward()
  55.   turtle.forward()
  56.  end
  57. end
Advertisement
Add Comment
Please, Sign In to add comment