ondemandfoki.blogg.se

Computer craft multipassword door
Computer craft multipassword door




computer craft multipassword door

CCs first First-Person Shooter.Craft OS is a simple operating system for the comput.

COMPUTER CRAFT MULTIPASSWORD DOOR CODE

tOutput(side, false) - Turn the redstone off.Įlse - If the password is not correct, then execute the code below. I have written a 3D rendering API for CraftOS.

computer craft multipassword door

Sleep(time) - Wait for the previously set amount of time. tOutput(side, true) - Turn the redstone on.

computer craft multipassword door

If input = password then - If the password they entered is correct, then execute the code below. Input = read("*") - Store the password the user types and hide it with star symbols as they type. Print("Password:") - Tell the user that you want a password. Os.pullEvent = os.pullEventRaw - This prevents people from pressing CTRL+T to terminate the program and unlock the door without the password. Time = 5 - This is the time that the redstone signal will be on. Password = "1234" - This is the password that you will use to open the door. Possible sides are left, right, front, back, bottom, and top. Side = "left" - This is the side of the computer that will send a redstone signal. If you use the code below, you will have to edit some things to make it work for you.ġ) Hook a computer up to redstone that controls your piston door.Ģ) In the computer, type "edit startup" to open the editor.Įxample code (Between the curly brackets) (Not tested in-game): After that, you can either learn LUA or copy the code that I've typed out below. MultiPassword is a secure encrypted password manager Reliably store your passwords, credit card details, and other important information.






Computer craft multipassword door