Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- local waiting = true
- while waiting do
- redstone.setOutput("back",true)
- print("Hello, what is the password to open the door?")
- password = read()
- if password == "Kake" then
- redstone.setOutput("back",false)
- print("Welcome. Door closing in...")
- print("3")
- sleep(1)
- print("2")
- sleep(1)
- print("1")
- sleep(1)
- os.reboot()
- waiting = false
- elseif password == "End" then
- waiting = false
- else
- print("Incorrect")
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement