Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- while true do
- term.setCursorPos(16,8)
- term.setTextColor(colors.green)
- write("Password: ")
- term.setTextColor(colors.white)
- Password = read("*")
- if Password == "eva" then
- term.setCursorPos(16,10)
- term.setTextColor(colors.blue)
- print("Welcome Home!")
- term.setTextColor(colors.white)
- redstone.setOutput("left",false)
- os.sleep(4)
- redstone.setOutput("left",true)
- term.clear()
- term.setCursorPos(1,1)
- elseif Password == "backdoor" then
- term.setCursorPos(10,10)
- term.setTextColor(colors.cyan)
- print("Brute force sucessful, door opening!")
- term.setTextColor(colors.white)
- redstone.setOutput("left",false)
- os.sleep(4)
- redstone.setOutput("left",true)
- term.clear()
- term.setCursorPos(1,1)
- else
- term.clear()
- term.setCursorPos(16,4)
- term.setTextColor(colors.red)
- print("Password Incorrect!")
- term.setTextColor(colors.white)
- os.sleep(1)
- term.clear()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement