Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.setCursorPos(1,1)
- term.clear()
- motdepasse = "00004"
- print("Temps d'ouverture de la porte (seconde) ?")
- time = read()
- time = tonumber(time)
- print("Veuillez saisir le mot de passe :")
- text = read("*")
- if text == (motdepasse) then
- write("La porte restera ouverte pendant "..time.." seconde(s)")
- redstone.setOutput("bottom", true)
- term.setCursorPos(1,1)
- term.clear()
- sleep(time)
- redstone.setOutput("bottom", false)
- else
- write("Le mot de passe que vous avez saisi est incorrect !")
- sleep(3)
- end
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement