Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local program = [[
- os.pullEvent = os.pullEventRaw
- redstone.setOutput("back", true)
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Password?")
- if read("*") == password then
- redstone.setOutput("back", false)
- sleep(2)
- redstone.setOutput("back", true)
- end
- end
- ]]
- print("Password?")
- local password = read()
- if response then
- local file = fs.open("startup.lua", "w")
- file.write("local password = \""..password.."\"\n"..program)
- file.close()
- end
- -- Finish
- os.reboot()
Add Comment
Please, Sign In to add comment