Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Unhackable Password Door v1.0 by zsmate13 --
- -- You can change the username and password and --
- -- the redstone output side (in line 5, 28, 53) --
- username = "yourname" -- Change the value between the strings --
- password = "yourpassword" -- Change the value between the strings --
- while true do
- redstone.setOutput("back",false)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.orange)
- write(" Login:")
- write(" ")
- term.setTextColor(colors.green)
- write("Unhackable Password Door")
- term.setCursorPos(41,2)
- print("by zsmate13")
- term.setTextColor(colors.gray)
- term.setCursorPos(31,3)
- print("build: 27062016 v1.0")
- term.setCursorPos(31,4)
- print("pastebin.com/3mkeUzby")
- term.setCursorPos(1,3)
- 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