View difference between Paste ID: Ye35XQ6q and 277iaXcT
SHOW: | | - or go back to the newest paste.
1
monitor = peripheral.wrap("left")
2
while true do
3
 term.clear()
4
 term.setCursorPos(1, 1)
5
 print("Please Enter Password:")
6
 input = read("*")
7
 if input == "password" then
8
  redstone.setOutput("back", true)
9-
  monitor.print("Password")
9+
  monitor.write("Password accepted")
10-
  monitir.print("Accepted")
10+
11
  redstone.setOutput("back", false)
12
 end
13
end