mkmush

simple password checker redstone

Jan 21st, 2022 (edited)
1,103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.26 KB | None | 0 0
  1. local password = "1234"
  2. local output = "right"
  3.  
  4. while true do
  5.   term.clear()
  6.   term.setCursorPos(1,1)
  7.   print("Passwort: ")
  8.   input = read("*")
  9.   if input == password then
  10.     rs.setOutput(output, true)
  11.     sleep(2)
  12.     rs.setOutput(output, false)
  13.   end
  14. end
Add Comment
Please, Sign In to add comment