Kaffetrakter

2x3 minecraft dør Norway

Apr 23rd, 2021 (edited)
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. while true do
  2.     rs.setOutput ("back", true)
  3.     term.clear()
  4.     term.setCursorPos(1, 1)
  5.     print("----------Kaffe Security v1.0----------")
  6.    
  7.     term.setCursorPos(3, 4)
  8.     print("Skriv inn passordet:")
  9.     local input = read("*")
  10. if input == ("Passord")
  11.      then
  12.       sleep(1)
  13.       term.clear()
  14.       term.setCursorPos(1, 1)
  15.       print("----------Kaffe Security v1.0----------")
  16.      
  17.       term.setCursorPos(3, 4)
  18.       print("Riktig Passord :)")
  19.       rs.setOutput("back", false)
  20.       sleep(5)
  21. else
  22.       term.clear()
  23.       term.setCursorPos(1, 1)
  24.       print("----------Kaffe Security v1.0----------")
  25.       term.setCursorPos(3, 4)
  26.       print("Passordet er Feil!!!")
  27.      
  28.  
  29.  end
  30.  end
Add Comment
Please, Sign In to add comment