Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Would you like to access the Autocrafter? (y/n)")
- input = read()
- if input == "y" then
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Password:")
- input = read("*")
- if input == "12304" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Please Enter Desired Time: ")
- input = read()
- print("You have " .. input .. " seconds to access the autocrafter.")
- redstone.setOutput("back", true)
- for i = input, 1, -1 do
- print(i .. " seconds remaining")
- sleep(1)
- end
- redstone.setOutput("back", false)
- os.reboot()
- else
- print("Password Incorrect!")
- print("Rebooting...")
- sleep(2)
- os.reboot()
- end
- end
- elseif input == "n" then
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("Why would you even open the computer..?")
- sleep(2)
- os.reboot()
- end
- else
- print("Rebooting...")
- sleep(2)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement