SHARE
TWEET

Mining

a guest Sep 11th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. l=1
  5. r=2
  6. e=0
  7. t=0
  8. f=0
  9.  
  10. print("Mining")
  11. print("Laenge")
  12. l = io.read()
  13. print("")
  14. write("Der Schacht wird ")
  15. write(l)
  16. write(" Bloecke lang")
  17. print("")
  18. print("")
  19. print("Wie viele Schaechte sollen gegraben werden?")
  20. r = io.read()
  21. print("")
  22. write("Es werden ")
  23. write(r)
  24. write(" Schaechte gegraben")
  25. print("")
  26. print("Soll die Turtle betankt werde (Slot1) 1 oder 0?")
  27. t = io.read()
  28.  
  29. if t == "0" then
  30.  
  31.   print("Turtle wird nicht betankt!")
  32.  
  33. end
  34.  
  35. if t == "1" then
  36.  
  37.     print("Turtel wird betankt!")
  38.  
  39. end
  40.  
  41. print("")
  42. print("Sollen Fackeln gesetzt werden (Slot 2)?")
  43. f = io.read()
  44.  
  45. if f == "0" then
  46.  
  47.   print("Es werden keine Fackeln gesetzt!")
  48.  
  49. end
  50.  
  51. if f == "1" then
  52.  
  53.   print("Es werden Fackeln gesetzt!")
  54.    
  55. end
  56.  
  57. print("")
  58. print("Sollen die Items entladen werden?")
  59. e = io.read()
  60.  
  61. if e == "0" then
  62.  
  63.   print("Items werden nicht entladen!")
  64.  
  65. end
  66.  
  67. if e == "1" then
  68.  
  69.   print("Items werden entladen!")
  70.  
  71. end
  72.  
  73. if t == "1" then
  74.   turtle.select(1)
  75.   turtle.refuel()
  76. end
  77.                        
  78. for i=1,r do
  79.  
  80.   for i=1,l do
  81.  
  82.     turtle.dig()
  83.     turtle.digUp()
  84.     turtle.up()
  85.     turtle.down()
  86.     turtle.forward()
  87.    
  88.   end
  89.  
  90.   turtle.turnLeft()
  91.   turtle.turnLeft()
  92.  
  93.   for i=1,l do
  94.  
  95.     turtle.forward()
  96.  
  97.   end
  98.  
  99.   turtle.turnRight()
  100.  
  101.   for i=1,3 do
  102.  
  103.     turtle.dig()
  104.     turtle.digUp()
  105.     turtle.up()
  106.     turtle.down()
  107.     turtle.forward()
  108.    
  109.   end
  110.   turtle.digUp()
  111.   turtle.turnRight()
  112.  
  113. end
  114.  
  115. turtle.turnRight()
  116.  
  117. for i=1,r do
  118.  
  119.   for i=1,3 do
  120.  
  121.     turtle.forward()  
  122.  
  123.   end
  124. end
  125.  
  126. turtle.turnRight()
  127.  
  128. if e == "1" then
  129.   for i=1,16 do
  130.     turtle.select(i)
  131.     turtle.drop()
  132.   end
  133. end  
  134.  
  135. turtle.select(1)
  136. turtle.turnLeft()
  137. turtle.turnLeft()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top