GamingDudeDE

Mining Turtle Tunnel v.1.02

Jun 28th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function digMain()
  2.     turtle.dig()
  3.     turtle.forward()
  4.     turtle.digUp()
  5. end
  6.  
  7. function placeTorch()
  8.     turtle.placeDown(1)
  9. end
  10.  
  11. function zurueck()
  12.     turtle.turnRight()
  13.     turtle.turnRight()
  14.     turtle.forward(15)
  15. end
  16.  
  17. function placeBlockBelow()
  18.     turtle.placeDown(2)
  19. end
  20.  
  21. function refuel()
  22.     turtle.refuel(64)
  23. end
  24.  
  25. function dropChest()
  26.     turtle.drop(4,9)
  27. end
  28.  
  29. print ("Sie haben 20 sekunden um dies zu machen.")
  30. print (newline)
  31. print ("<========================================>")
  32. print ("Fackeln auf Slot 1 machen.")
  33. print ("Cobblestone oder Erde auf Slot 2 machen.")
  34. print ("Kohle auf Slot 3 machen")
  35. print ("<========================================>")
  36. print (newline)
  37. print ("Viel spass :D")
  38.  
  39. os.sleep(20)
  40.  
  41. for a=1,5 do
  42.     digMain()
  43.         os.sleep(0.5)
  44.             if turtle.detect()==true do
  45.             turtle.dig()
  46.            
  47.             if turtle.detectDown()==false do
  48.             turtle.placeDown(2)
  49. end
  50.  
  51. turtle.placeDown(1)
  52.  
  53. for a=1,5 do
  54.     digMain()
  55.         os.sleep(0.5)
  56.             if turtle.detect()==true do
  57.             turtle.dig()
  58.            
  59.             if turtle.detectDown()==false do
  60.             turtle.placeDown(2)
  61. end
  62.  
  63. turtle.placeDown(1)
  64.  
  65. for a=1,5 do
  66.     digMain()
  67.         os.sleep(0.5)
  68.             if turtle.detect()==true do
  69.             turtle.dig()
  70.            
  71.             if turtle.detectDown()==false do
  72.             turtle.placeDown(2)
  73. end
  74.  
  75. turtle.placeDown(1)
  76.  
  77. end
Advertisement
Add Comment
Please, Sign In to add comment