Advertisement
Jeyjey0

MineApi

Oct 29th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 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. end
  42. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement