Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw -- makes it so no one can terminate the program
- pass = "Baer" -- replace "norway240" with your password
- while true do
- term.clear()
- term.setCursorPos(12,5)
- print("Please Enter The Password")
- term.setCursorPos(12,6)
- input = read("*")
- if input == pass then
- rs.setOutput("back",true) -- replace "left" with the side the door is connected to
- sleep(2)
- rs.setOutput("back",false) -- once again replace "left with the side the door is connected to
- else
- term.setCursorPos(12,7)
- print("WRONG PASSWORD")
- sleep(2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement