Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- redstone.setOutput ("left", false)
- attempts = 0
- correctpassword = "rfg"
- print("Attempt:"..attempts.."/3")
- write("ENTER AUTHORISATION CODE:")
- password = read("*")
- if password == (correctpassword) then
- write("CODE VALID")
- redstone.setOutput("left", true)
- sleep(5)
- os.reboot()
- elseif password == "operationalresetonedelta" then
- write("Initiating Administrative Mode...")
- write("") -- code break
- else
- while password ~= (correctpassword) do
- attempts = attempts + 1
- print("INVALID CODE:"..attempts.."/3")
- password = read("*")
- if password == (correctpassword)
- then print("CODE VALID")
- redstone.setOutput("left", true)
- sleep(5)
- os.reboot()
- elseif attempts >= 3 then
- sleep(5)
- os.reboot() end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement