SHOW:
|
|
- or go back to the newest paste.
| 1 | while true do | |
| 2 | os.pullEvent =os.pullEventRaw | |
| 3 | term.clear() | |
| 4 | term.setCursorPos(1, 1) | |
| 5 | write("Entrance for subway employees only!")
| |
| 6 | write("Please Enter Password: ")
| |
| 7 | - | if input == "1231" then |
| 7 | + | |
| 8 | - | redstone.setOutput("right", true)
|
| 8 | + | if input == "metro" then |
| 9 | redstone.setOutput("left", true)
| |
| 10 | - | redstone.setOutput("right", false)
|
| 10 | + | |
| 11 | redstone.setOutput("left", false)
| |
| 12 | sleep(1) | |
| 13 | os.reboot() | |
| 14 | else | |
| 15 | print("Incorrect! Try again later.")
| |
| 16 | sleep(1) | |
| 17 | print("Shutting Down")
| |
| 18 | sleep(1) | |
| 19 | os.reboot() | |
| 20 | end | |
| 21 | end |