Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "back"
- function pass1()
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password:")
- input = read()
- if input == "password" then
- print("Password Accepted!")
- sleep(2)
- pass2()
- else
- print("Password Denied!")
- sleep(2)
- end
- end
- function pass2()
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter 2nd Password:")
- input = read()
- if input == "stargate" then
- print("2nd Password Accepted!")
- sleep(2)
- redstone()
- else
- print("Password Denied!")
- print("Falling Back!")
- sleep(2)
- pass1()
- end
- end
- function redstone()
- redstone.setOutput(side, true)
- sleep(2)
- redstone.setOutput(side, false)
- end
- while true do
- pass1()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement