Advertisement
Guest User

strip

a guest
Apr 1st, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.53 KB | None | 0 0
  1. e=0
  2.  
  3. function Chest()
  4.  
  5. turtle.turnRight()
  6. turtle.turnRight()
  7. turtle.select(14)
  8. turtle.place()
  9. turtle.select(2)
  10. turtle.drop()
  11. turtle.select(3)
  12. turtle.drop()
  13. turtle.select(4)
  14. turtle.drop()
  15. turtle.select(5)
  16. turtle.drop()
  17. turtle.select(6)
  18. turtle.drop()
  19. turtle.select(7)
  20. turtle.drop()
  21. turtle.select(8)
  22. turtle.drop()
  23. turtle.select(9)
  24. turtle.drop()
  25. turtle.select(10)
  26. turtle.drop()
  27. turtle.select(11)
  28. turtle.drop()
  29. turtle.select(12)
  30. turtle.drop()
  31. turtle.select(13)
  32. turtle.select(14)
  33. turtle.dig()
  34. turtle.select(1)
  35. turtle.turnRight()
  36. turtle.turnRight()
  37.  
  38. end
  39.  
  40. function Kies()
  41.  while turtle.detect() do
  42.  turtle.dig()
  43.  sleep(0,4)
  44.  
  45.  
  46.  end
  47. end
  48. function Reload()
  49.  
  50.  turtle.select(15)
  51.  turtle.refuel(1)
  52.  turtle.select(1)
  53.  
  54. end
  55.  
  56. function Dig()
  57.  
  58.  Reload()
  59.  turtle.placeDown()
  60.  turtle.dig()
  61.  Kies()
  62.  turtle.forward()
  63.  turtle.digUp()
  64.  
  65. end
  66.  
  67. function Fackel()
  68.  
  69.  turtle.dig()
  70.  Kies()
  71.  turtle.forward()
  72.  turtle.digUp()
  73.  turtle.turnRight()
  74.  turtle.turnRight()
  75.  turtle.select(16)
  76.  turtle.place()
  77.  turtle.select(1)
  78.  turtle.turnRight()
  79.  turtle.turnRight()
  80. end
  81.  
  82. for i=1,50 do
  83.  
  84.  Fackel()
  85.  Dig()
  86.  if (e>5) then
  87.  Chest()
  88.  e=0
  89.  end
  90.  Dig()
  91.  
  92.  turtle.turnRight()
  93.  Dig()
  94.  Dig()
  95.  Dig()
  96.  Dig()
  97.  
  98.  turtle.turnRight()
  99.  turtle.turnRight()
  100.  
  101.  turtle.forward()
  102.  turtle.forward()
  103.  turtle.forward()
  104.  turtle.forward()
  105.  
  106.  Dig()
  107.  Dig()
  108.  Dig()
  109.  Dig()
  110.  
  111.  turtle.turnRight()
  112.  turtle.turnRight()
  113.  
  114.  turtle.forward()
  115.  turtle.forward()
  116.  turtle.forward()
  117.  turtle.forward()
  118.  
  119.  turtle.turnLeft()
  120.  e=e+1
  121.  
  122. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement