Print("Incorrect password!") - Tell the user that they got the password wrong.ĥ) Type "shutdown" to turn off the computer. tOutput(side, false) - Turn the redstone off.Įlse - If the password is not correct, then execute the code below. Sleep(time) - Wait for the previously set amount of time. tOutput(side, true) - Turn the redstone on. 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. Removing the MultiPassword program from your computer and/or mobile devices is not enough to stop using and charge the payment. Side = "left" - This is the side of the computer that will send a redstone signal. If you refuse to use the MultiPassword service, the most important step is to cancel the auto-renewal of payments, which is the cancellation of your subscription. 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |