Advertisement
augustclear

Turtle Installer

Dec 18th, 2019 (edited)
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. --Function to get files
  2.  
  3. function getFile(id, filename)
  4.     if fs.exists(filename) then
  5.         --print("Delete "..filename)
  6.         fs.delete(filename)
  7.     end
  8.     shell.run("pastebin","get",id,filename)
  9. end
  10.  
  11. --Calls to get files
  12. fs.makeDir("lib")
  13. getFile("7F0rqviv","lib/turtlelib")
  14. getFile("1Av0rjea","turtlebg")
  15. getFile("nDiQUHq7","turtlefg")
  16.  
  17. term.clear()
  18. term.setCursorPos(1,1)
  19.  
  20. --Setup Commands
  21.  
  22. local w = require("lib.turtlelib")
  23. w.init()
  24.  
  25. --Files to run
  26.  
  27. local id = shell.openTab("turtlebg")
  28. multishell.setTitle(id,"GPS")
  29. --shell.run("turtlefg")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement