Advertisement
bobynight6

first

Aug 28th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local direction = 0
  2.  
  3. function compare_mine()
  4.  
  5.     local resultat = false
  6.     local resultat1 = false
  7.     local resultat2 = false
  8.     local resultat3 = false
  9.  
  10.     turtle.select(1)
  11.     resultat1 = turtle.compare()
  12.    
  13.     turtle.select(2)
  14.     resultat2 = turtle.compare()
  15.    
  16.     turtle.select(3)
  17.     resultat3 = turtle.compare()
  18.    
  19.     resultat = resultat1 or resultat2 or resultat3
  20.    
  21.     if resultat == false then
  22.         turtle.dig()
  23.     end
  24.    
  25.     turtle.turnRight()
  26.     direction=direction+1
  27. end
  28.  
  29. turtle.select(16)
  30. turtle.refuel(1)
  31.  
  32. turtle.digDown()
  33. turtle.down()
  34.  
  35. while direction ~=4 do
  36. compare_mine()
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement