Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setCursorPos(14,4)
- term.setBackgroundColor(colors.white)
- term.setTextColor(colors.blue)
- term.clear()
- print("Welcome to MineTek OS 2.0")
- print("")
- print(" Loading operating system...")
- print("")
- print("")
- textutils.slowPrint(" ---------------------------------------------")
- sleep(1)
- term.clear()
- term.setCursorPos(18,4)
- config = fs.open("minetek_os/config", "r")
- username = config.readLine()
- password = config.readLine()
- config.close()
- print("MineTek OS 2.0")
- print("")
- print(" Username :")
- print(" Password :")
- term.setCursorPos(15,6)
- username_try = read()
- term.setCursorPos(15,7)
- password_try = read("*")
- if username_try == username and password_try == password then
- term.clear()
- term.setCursorPos(1,1)
- shell.run("minetek_os/main")
- else
- term.clear()
- term.setCursorPos(18,4)
- print("MineTek OS 2.0")
- print("")
- print(" Bad username or password !")
- sleep(2)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement