Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local password = "password"
- local reset_key = "reset"
- local old_pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password:")
- input = read("*")
- if input == password then
- redstone.setOutput("back", true)
- sleep(5)
- redstone.setOutput("back", false)
- elseif input == reset_key then
- break
- end
- end
- os.pullEvent = old_pullEvent
Add Comment
Please, Sign In to add comment