Advertisement
ImTaken

StartupPassword

Aug 23rd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. while true do
  2.     term.clear()
  3.     term.setCursorPos(1, 1)
  4.     print("Ingresa la contraseña: ")
  5.     input = read ("*")
  6.  
  7.     if input == "malparido" then  
  8.         print("Contraseña correcta!!!")
  9.         redstone.setOutput("back", true)
  10.         sleep(2)
  11.         redstone.setOutput("back", false)
  12.     else
  13.         print("Contraseña incorrecta")
  14.         sleep(2)
  15.     end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement