Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. size = nil
  2. direction = nil
  3.  
  4. function start()
  5. term.clear()
  6. term.setCursorBlink(false)
  7. term.setCursorPos(1,1)
  8. textutils.slowWrite("yeet OS...\n\n")
  9. textutils.slowWrite("Area size: ")
  10. size = read()
  11. textutils.slowWrite("Mine left (l) or right (r): ")
  12. direction = read()
  13. term.setCursorPos(term.getCursorPos())
  14. end
  15.  
  16. function reloadFuel()
  17. turtle.select(16)
  18. turtle.dig()
  19. turtle.place()
  20. turtle.select(15)
  21. repeat
  22. turtle.place()
  23. until ~turtle.refuel()
  24. turtle.select(16)
  25. turtle.dig()
  26. end
  27.  
  28. function mine()
  29. turtle.select(1)
  30. turtle.dig()
  31. turtle.forward()
  32. end
  33.  
  34. start()
  35. reloadFuel()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement