Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pas = "1234"
- redstone.setOutput("left", false)
- function unlock()
- redstone.setOutput("left", true)
- sleep(2)
- redstone.setOutput("left", false)
- end
- function pas()
- print('New Password')
- p = read("*")
- pas = p
- end
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- print 'password:'
- inp = read("*")
- if inp == pas then
- print('say -unlock- or -pas-')
- print('if you say -pas- it will let you change your password')
- op = read()
- if op == unlock then
- unlock()
- end
- if op == pas then
- pas()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement