Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. local function mine_front(mode) --1 normal 0 only ore
  2. local success, data = turtle.inspect()
  3.  
  4. if mode==1 then
  5. turtle.dig()
  6. end
  7.  
  8. if success then
  9. if data.name == "minecraft:stone" then --Found Ore
  10. if mode==0 then
  11. turtle.dig()
  12. end
  13.  
  14. turtle.forward()
  15. mine_front(0)
  16. turtle.turnLeft()
  17. mine_front(0)
  18. turtle.turnRight()
  19. turtle.turnRight()
  20. mine_front(0)
  21. turtle.turnLeft()
  22. turtle.back()
  23. else
  24.  
  25.  
  26. end
  27. end
  28. end
  29.  
  30.  
  31.  
  32.  
  33.  
  34. mine_front(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement