Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- redstone.setOutput("back",false)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.orange)
- print(" Login:")
- print("")
- term.setTextColor(colors.lightBlue)
- write("Username: ")
- term.setTextColor(colors.white)
- input1 = read()
- term.setTextColor(colors.lightBlue)
- write("Password: ")
- term.setTextColor(colors.white)
- input2 = read("*")
- if input1 == "username" and input2 == "password" then
- redstone.setOutput("back",true)
- term.setTextColor(colors.lime)
- print("")
- write("Login succesful! Opening doors")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- write(". ")
- sleep(1)
- term.setTextColor(colors.red)
- print("")
- print("Closing doors in:")
- term.setTextColor(colors.yellow)
- print("3")
- sleep(1)
- term.setTextColor(colors.orange)
- print("2")
- sleep(1)
- term.setTextColor(colors.red)
- print("1")
- sleep(1)
- print("")
- print("Doors closed")
- redstone.setOutput("back",false)
- sleep(1)
- term.setTextColor(colors.yellow)
- print("")
- write("Rebooting")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- os.reboot()
- else
- term.setTextColor(colors.red)
- print("")
- print("Incorrect username or password please try again later!")
- sleep(2)
- term.setTextColor(colors.yellow)
- print("")
- write("Rebooting")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- sleep(1)
- write(".")
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement