SHARE
TWEET

test3

a guest Jul 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function tunel()
  2. for i=1,5 do
  3. turtle.dig()
  4. turtle.forward()
  5. turtle.digUp()
  6. turtle.digDown()
  7. end
  8. end
  9.  
  10. local function checkInv()
  11. for i=1,16 do
  12. turtle.select(i)
  13. if turtle.getItemCount()~=0 then
  14. return 1
  15. end
  16. end
  17. return 0
  18. end
  19.  
  20. function dropItems()
  21. for i=1,16 do
  22. turtle.select(i)
  23. turtle.drop()
  24. end
  25. end
  26.  
  27. function intoarce(var)
  28. turtle.turnLeft()
  29. turtle.turnLeft()
  30. for i=1,var do
  31. turtle.forward()
  32. end
  33. turtle.turnRight()
  34. end
  35.  
  36. tunel()
  37.  
  38. turtle.turnLeft()
  39. turtle.dig()
  40. turtle.forward()
  41. turtle.digUp()
  42. turtle.digDown()
  43. turtle.turnLeft()
  44.  
  45. tunel()
  46.  
  47. turtle.turnLeft()
  48. for i=1,10 do
  49. turtle.forward()
  50. end
  51. local drum=0
  52. local inv=checkInv()
  53. while inv==1 do
  54. print("a")
  55. turtle.forward()
  56. turtle.turnLeft()
  57. if turtle.detect()==true then
  58. dropItems()
  59. inv=checkInv()
  60. end
  61. if inv==1 then
  62. turtle.up()
  63. dropItems()
  64. turtle.down()
  65. end
  66. turtle.turnRight()
  67. drum=drum+1
  68. inv=checkInv()
  69. end
  70.  
  71. intoarce(drum)
  72. drum=0
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