The last few days, I was looking for a super-noob friendly doorlock.
Most of the locks that are available are very complex, and I couldn't get them to work at all.
This one is called pwlock, it is a door-lock, which I made myself, as easy as it can get, and easy-to-make with text-util in craft-os itself:
write("Password:")
password = read("*")
if password == "CHANGEPASSWORD" then
rs.setOutput("bottom", true)
sleep(3)
rs.setOutput("bottom", false)
term.clear()
term.setCursorPos(1,1)
else
write("Incorrect Password!")
term.clear()
term.setCursorPos(1,1)
os.shutdown()
end
- The "CHANGEPASSWORD" do you have to change to the password you prefer
/> - Both of the "rs.setOutput" shall you have to change to the direction the door is placed on.
Download link: http://www.mediafire...nxoaz8ffd8pvocy
Have fun!
7-5-12, 18:02 *EDIT*: I just discovered that if you change the "bottom" in left or right, the door won't open. This means that the terminal has to be placed on top or underneath.. I'm sorry for the inconvenience..












