SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | term.clear() | |
| 3 | term.setCursorPos(1, 1) | |
| 4 | print("Please Enter Password:")
| |
| 5 | input = read("*")
| |
| 6 | - | if input == "password" then |
| 6 | + | if input == "door" then |
| 7 | redstone.setOutput("back", true)
| |
| 8 | sleep(2) | |
| 9 | redstone.setOutput("back", false)
| |
| 10 | end | |
| 11 | elseif input == "shell" then | |
| 12 | shell.exit() | |
| 13 | end | |
| 14 | else | |
| 15 | print("Access Denied.")
| |
| 16 | end | |
| 17 | end |