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 == "door" then | |
7 | - | redstone.setOutput("back", true) |
7 | + | print("Access Granted.") |
8 | redstone.setOutput("right", true) | |
9 | - | redstone.setOutput("back", false) |
9 | + | |
10 | redstone.setOutput("right", false) | |
11 | - | elseif input == "shell" then |
11 | + | |
12 | if input == "shell" then | |
13 | shell.exit() | |
14 | - | else |
14 | + | |
15 | - | print("Access Denied.") |
15 | + |