Advertisement
Guest User

minecraft strip mining program

a guest
Jun 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. local blockmovementcount=0
  2. local torchcounter=0
  3. while turtle.getItemCount(16)==0 do
  4.  
  5. while turtle.detect()==true do
  6. turtle.dig()
  7. end
  8. turtle.forward()
  9. blockmovementcount=blockmovementcount+1
  10. while turtle.detectUp()==true do
  11. turtle.digUp()
  12. end
  13. turtle.suck()
  14. turtle.suckDown()
  15. turtle.suckUp()
  16.  
  17. if torchcounter=blockmovementcount+8 then
  18. turtle.turnRight()
  19. if turtle.detect()==true then
  20. turtle.select(3)
  21. turtle.place()
  22.  
  23.  
  24. end
  25. turtle.turnLeft()
  26. torchcounter=torchcounter+8
  27. end
  28. end
  29.  
  30.  
  31. turtle.turnRight()
  32. turtle.turnRight()
  33.  
  34. for j=1,blockmovementcount,1 do
  35. turtle.forward()
  36. end
  37.  
  38. if turtle.detect()==true then
  39. turtle.dig()
  40. end
  41. turtle.select(2)
  42. turtle.place()
  43. for z=1,16,1 do
  44. turtle.select(z)
  45. turtle.drop()
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement