GochiPC

2.1U

Jul 19th, 2025 (edited)
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. local label = os.getComputerLabel()
  2.  
  3. if label == "2.1" then
  4.   print("You allready have this version" .. label)
  5.   return
  6. end
  7.  
  8. if label == "2.0" then
  9.     term.clear()
  10.     term.setCursorPos(1,1)
  11.     print("Welcome to MineUpdater")
  12.     print("please wait to update 2.1")
  13.     sleep(2)
  14.     print("removing old file")
  15.     shell.run("delete startup.lua")
  16.     sleep(5)
  17.     print("installing new files")
  18.     sleep(2)
  19.     shell.run("pastebin get VS5buKVU startup.lua")
  20.     sleep(2)
  21.     print("the update complete")
  22.     print("please wait this will reboot")
  23.     sleep(4)
  24.     os.reboot()
  25. end
Advertisement
Add Comment
Please, Sign In to add comment