Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Software Porta con Password - Realizzato da Darvom\n\nScegli un'Opzione!\n\n1 - Apri la Porta\n2 - Chiudi la Porta\n")
- case=read()
- if case == "1" then
- print("Inserisci la Password\n")
- password = read('*')
- if password == "UnPollo" then
- print("\nPassword Corretta, Accesso Accordato\n")
- redstone.setOutput("bottom", true)
- sleep(1)
- redstone.setOutput("bottom", false)
- sleep(1)
- else
- print("\nPassword Errata, Accesso Negato\n")
- sleep(2)
- end
- elseif case == "2" then
- print("\nChiusura Porta in Corso...\n")
- redstone.setOutput("back", true)
- sleep(1)
- redstone.setOutput("back", false)
- sleep(1)
- else
- print("\nInserisci Numero Valido\nInserisci un valore valido: 0 o 1\n")
- sleep(2)
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement