mkmush

simple password checker redstone

Jan 21st, 2022 (edited)
945
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data Copied