Guest User

flint

a guest
Apr 7th, 2014
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local flintCount = turtle.getItemCount(1) > 0
  2.  
  3. function gravelPlace()
  4. turtle.select(1)
  5. while true do
  6. turtle.place()
  7. break
  8. end
  9. end
  10.  
  11. function gravelDig()
  12. while turtle.detect() do
  13. turtle.dig()
  14. break
  15. end
  16. end
  17.  
  18. function flint()
  19. for i = 1, flintCount, 1 do
  20. gravelPlace()
  21. gravelDig()
  22. end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment