Guest User

Mine

a guest
Apr 17th, 2015
228
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. print(
  4. "----------------- Einstellungen -------------------")
  5. print()
  6. textutils.slowWrite("Anzahl der Seitengaenge? : ")
  7.  
  8. a = io.read()
  9.  
  10. print()
  11. textutils.slowWrite("Weite der Seitengaenge   : ")
  12.  
  13. b = io.read()
  14.  
  15. print()
  16. print("Bitte lege 64 Fackeln in den unteren,rechten Slot der Turtle und Kohle in den slot daneben.")
  17.  
  18.  
  19. print(
  20. "---------------------------------------------------")
  21.  
  22. c = 0
  23.  
  24. d = 0
  25.  
  26. turtle.select(15)
  27. turtle.refuel(all)
  28. turtle.select(1)
  29.  
  30.  
  31. function AbbV()
  32.    
  33.     while turtle.detect() do          
  34.           turtle.dig()
  35.           sleep(0.5)
  36.     end
  37.  
  38. end
  39.  
  40.  
  41. function AbbO()
  42.    
  43.     while turtle.detectUp() do
  44.           turtle.digUp()
  45.           sleep(0.5)
  46.     end
  47.    
  48. end
  49.  
  50. function lava()
  51.    
  52.     if turtle.detect() then
  53.     else
  54.        turtle.select(1)
  55.        turtle.placeDown()      
  56.        
  57.     end
  58.    
  59. end
  60.  
  61.  
  62. function abb()
  63.    
  64.     AbbV()
  65.     turtle.forward()
  66.     lava()
  67.     AbbO()
  68.    
  69. end
  70.  
  71.  
  72. function sgw()
  73.    
  74.     while c <= b do
  75.    
  76.           abb()
  77.           c = c + 1
  78.          
  79.     end
  80.    
  81. end
  82.  
  83.  
  84. function mg()
  85.  
  86.     while d <= a do
  87.          
  88.           abb()
  89.           abb()
  90.           turtle.turnRight()
  91.           sgw()
  92.           turtle.turnRight()
  93.           turtle.turnRight()
  94.           sgw()
  95.           sgw()
  96.           turtle.turnRight()
  97.           turtle.turnRight()
  98.           sgw()
  99.           turtle.turnLeft()
  100.    
  101.     end
  102.  
  103. end
  104.  
  105. mg()
  106.  
  107. print("Fertig")
RAW Paste Data