kovakovi2000

CC: Turtle EX, RF, Refuel, RNC, TMonitor easy setup 16

Apr 14th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. os.setComputerLabel(nil)
  2. if fs.exists("rnc") then
  3.     fs.delete("rnc")
  4. end
  5. shell.run("pastebin","get","xs37EvQg","rnc")
  6.  
  7. if fs.exists("rnc2") then
  8.     fs.delete("rnc2")
  9. end
  10. shell.run("pastebin","get","7UH6rt36","rnc2")
  11.  
  12. if fs.exists("ldb2") then
  13.     fs.delete("ldb2")
  14. end
  15. shell.run("pastebin","get","vY5FZV05","ldb2")
  16.  
  17. if fs.exists("startup") then
  18.     fs.delete("startup")
  19. end
  20. shell.run("pastebin","get","gsxZ9G6L","startup")
  21.  
  22. if fs.exists("goto") then
  23.     fs.delete("goto")
  24. end
  25. shell.run("pastebin","get","22KpJWhe","goto")
  26.  
  27. if fs.exists("rser") then
  28.     fs.delete("rser")
  29. end
  30. shell.run("pastebin","get","8mdJJDpy","rser")
  31.  
  32. x,y,z = gps.locate(2, false)
  33. local fLocation = fs.open("locations/ex_home","w")
  34.     fLocation.writeLine(x)
  35.     fLocation.writeLine(y)
  36.     fLocation.writeLine(z)
  37. fLocation.close()
  38. turtle.refuel()
  39. os.loadAPI("ldb2")
  40. ldb2.set("ex", "depth", 0)
  41. ldb2.set("ex", "size", 16)
  42. ldb2.set("ex", "done", 0)
  43. fs.delete("x")
  44. os.reboot()
Add Comment
Please, Sign In to add comment