Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("+-------------------------------------------------+")
- term.setCursorPos(1,2)
- print("| AIRLOCK SECURITY CONTROLS |")
- term.setCursorPos(1,3)
- print("+-------------------------------------------------+")
- term.setCursorPos(1,4)
- print("| Enter Password: |")
- term.setCursorPos(19, 4)
- input = read("*")
- if input == "password" then
- redstone.setOutput("left", true)
- redstone.setOutput("top", true)
- sleep(5)
- redstone.setOutput("left", false)
- redstone.setOutput("top", false)
- else
- term.setCursorPos(19,4)
- print("INVALID PASSWORD")
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement