Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local RUNNING = true
- local input
- function reset()
- term.clear()
- term.setCursorPos(1, 2)
- term.write(" Restricted access")
- term.setCursorPos(1, 4)
- term.write(" Please enter password: ")
- end
- reset()
- while RUNNING do
- input = read("*")
- if input == "oeleboele" then
- term.setCursorPos(1, 6)
- term.write(" Opening door.")
- redstone.setOutput("bottom", true)
- sleep(1.5)
- redstone.setOutput("bottom", false)
- sleep(1)
- reset()
- else
- sleep(1)
- reset()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement