Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- password = "password"
- term.clear()
- term.setCursorPos(1,1)
- print("===================================================")
- print("Welcome to Android's House")
- print("")
- print("Please enter the password to enter.")
- print("")
- write "Password: "
- passwd=read("*")
- if passwd == password then
- term.clear()
- term.setCursorPos(1,1)
- print("===================================================")
- print("Opening door...")
- redstone.setOutput("left", true)
- sleep(3)
- redstone.setOutput("left", false)
- os.reboot()
- else
- term.clear()
- term.setCursorPos(1,1)
- print("===================================================")
- print("Password Incorrect!")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment