Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- local function passwordEntry ()
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password to Open/Close Silo Doors")
- input = read("*")
- if input == "webberstinky" then
- redstone.setOutput("left", true)
- sleep(2)
- redstone.setOutput("left", false)
- end
- end
- end
- local function listen ()
- while true do
- a, b, c, d, e = os.pullEvent()
- if c == "webberstinky" then
- redstone.setOutput("left", true)
- sleep(2)
- redstone.setOutput("left", false)
- end
- end
- end
- while true do
- parallel.waitForAny(passwordEntry, listen)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement