Larvix

map/update

Dec 16th, 2023 (edited)
789
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.69 KB | None | 0 0
  1. print("Program folder location:")
  2. path = read()
  3. if fs.exists(path) then
  4. print("Existing files will be deleted.\nPress y to continue.")
  5. evt,key = os.pullEvent("key")
  6. if key == keys.y then
  7. write("Deleting existing files... ")
  8. fs.delete(path)
  9. print("Success.")
  10. else cancel = true
  11. print("Process terminated.")
  12. sleep(0.1)end
  13. end
  14. if not cancel then
  15. if path ~= "" then
  16. write("Creating new folder "..path.."/... ")
  17. fs.makeDir(path)
  18. print("Success")
  19. end
  20. shell.run("pastebin get 7wDQAN40 "..path.."/entity")
  21. shell.run("pastebin get kPGiiRu4 "..path.."/block")
  22. shell.run("pastebin get 15LtKbKy "..path.."/query")
  23. shell.run("pastebin get DkRynQVx "..path.."/update")
  24. shell.run("reboot")
  25. end
Advertisement
Add Comment
Please, Sign In to add comment