Advertisement
Jeyjey0

Mine3Api

Oct 29th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. function check()
  2. drop = 0
  3. check = 0
  4. total = 0
  5. for i =1,16 do
  6. drop = drop + 1
  7. turtle.select(drop)
  8. items = turtle.getItemCount()
  9. total = total + items
  10. term.clear()
  11. term.setCursorPos(1,1)
  12. print("Count: ",total)
  13. if total >= 250 == true then
  14. print("VOLL")
  15. local check = 1
  16. print("Clearing ...")
  17. turtle.turnLeft()
  18. turtle.turnLeft()
  19. turtle.up()
  20. h = fs.open("/stripmineprogramm/number","r")
  21. distance3 = h.readAll()
  22. h.close()
  23. distance2 = distance3 * 3
  24. for i=1,distance2 do
  25. mine2.mine2()
  26. end
  27. if turtle.detectDown() == true then
  28. turtle.digDown()
  29. turtle.down()
  30. elseif turtle.detectDown() == false then
  31. turtle.down()
  32. end
  33. mine.clear()
  34. turtle.turnRight()
  35. turtle.turnRight()
  36. turtle.up()
  37. for i=1,distance2 do
  38. mine2.mine2()
  39. end
  40. turtle.down()
  41. break
  42. elseif total < 250 == true then
  43. end
  44. end
  45. end
  46. function torch()
  47. drop = 0
  48. for i=1,16 do
  49. drop = drop + 1
  50. turtle.select(drop)
  51. icount = turtle.getItemCount()
  52. if icount >= 1 == true then
  53. local item = turtle.getItemDetail()
  54. if item.name == "minecraft:torch" == true then
  55. turtle.turnLeft()
  56. turtle.turnLeft()
  57. turtle.place()
  58. turtle.turnLeft()
  59. turtle.turnLeft()
  60. turtle.select(1)
  61. break
  62. else
  63. end
  64. else
  65. end
  66. end
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement