Advertisement
Jeyjey0

Mine

Oct 31st, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. function mine()
  2. turtle.dig()
  3. mine.gravel()
  4. turtle.digUp()
  5. end
  6.  
  7. function bridge()
  8. if turtle.detectDown() == false then
  9. drop = 0
  10. for i=1,16 do
  11. drop = drop + 1
  12. turtle.select(drop)
  13. icount = turtle.getItemCount()
  14. if icount >= 1 == true then
  15. local item = turtle.getItemDetail()
  16. if item.name == "minecraft:dirt" == true then
  17. turtle.placeDown()
  18. turtle.select(1)
  19. break
  20. else
  21. end
  22. else
  23. end
  24. end
  25. end
  26. end
  27.  
  28.  
  29. function clear()
  30. drop = 0
  31. for i = 1,16 do
  32. drop = drop + 1
  33. turtle.select(drop)
  34. icount = turtle.getItemCount()
  35. if icount >= 1 == true then
  36. local item = turtle.getItemDetail()
  37. if item.name == "minecraft:torch" == false then
  38. turtle.drop()
  39. end
  40. end
  41.  
  42.  
  43. function torch()
  44. drop = 0
  45. for i=1,16 do
  46. drop = drop + 1
  47. turtle.select(drop)
  48. icount = turtle.getItemCount()
  49. if icount >= 1 == true then
  50. local item = turtle.getItemDetail()
  51. if item.name == "minecraft:torch" == true then
  52. turtle.turnLeft()
  53. turtle.turnLeft()
  54. turtle.place()
  55. turtle.turnLeft()
  56. turtle.turnLeft()
  57. turtle.select(1)
  58. break
  59. else
  60. end
  61. else
  62. end
  63. end
  64. end
  65. end
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement