User blog comment:ShadowRezza/How would i set the computer so that i type in a password and the door to my house opens?/@comment-4599161-20120722075246

Do yuo simply just want a segment of code or actual knowledge of LUA coding?

Here is the instructions if you want the first option:

1. Stick a computer to the left of an iron door and right-click it.

2. Type: edit startup

3. Type this:

while true do

shell.run("clear")

print("Enter your password here")

x = io.read("*")

if x == ("YOURPASSWORD") then

print ("Password Correct!")

redstone.setOutput("right", true)

sleep(3)

redstone.setOutput("right", false)

else

print ("Password Incorrect.")

sleep(3)

end

end

Note: Any typos at any stage will break it. If this doesn't work leave me a mssg, hopefully I'll reply. If you want to learn LUA then you rin for a more difficlut ride, I would reccomend looking at a variety of tutorials and asking question on the compuetcraft wiki. Hope this helps.