<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=24.20.222.206&amp;*</id>
		<title>ComputerCraft Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.computercraft.info/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=24.20.222.206&amp;*"/>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/Special:Contributions/24.20.222.206"/>
		<updated>2026-09-22T08:19:46Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Calculator_Tutorial&amp;diff=1486</id>
		<title>Calculator Tutorial</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Calculator_Tutorial&amp;diff=1486"/>
				<updated>2012-05-06T03:18:30Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Fix num1 and num2 variables&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 -- anything after two dashes is a comment, and wont be compiled.&lt;br /&gt;
 --[[ this is also a comment&lt;br /&gt;
 and so is this&lt;br /&gt;
 ]]--&lt;br /&gt;
 &lt;br /&gt;
 --this tutorial will teach you the basics of the print() and read() functions, if statements, as well as some variable use and math operations.&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
 print(&amp;quot;Do you want to add, subtract, multiply or divide?&amp;quot;) -- this code displays the question within the quotation marks&lt;br /&gt;
 op = read() -- this code creates a variable called 'op', the read() function stalls the program to accept user input, which is stored in op&lt;br /&gt;
 print(&amp;quot;&amp;quot;) -- just gives us some space to work with&lt;br /&gt;
 &lt;br /&gt;
 print(&amp;quot;what is the first number to be operated on?&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 num1 = tonumber(read()) -- accepts the first number to be stored in the variable 'number1'&lt;br /&gt;
 print(&amp;quot;&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 print(&amp;quot;and the second number?&amp;quot;)&lt;br /&gt;
 num2 = tonumber(read())&lt;br /&gt;
 print(&amp;quot;&amp;quot;)&lt;br /&gt;
 &lt;br /&gt;
 -- now we operate on the number depending on what the user typed first&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;add&amp;quot; then -- if you need help with conditional statements, see this page: [http://www.troubleshooters.com/codecorn/lua/luaif.htm]&lt;br /&gt;
  result = num1+num2&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;multiply&amp;quot; then&lt;br /&gt;
  result = num1*num2 -- asterisk represents multiply&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;divide&amp;quot; then&lt;br /&gt;
  result = num1/num2&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 if op == &amp;quot;subtract&amp;quot; then&lt;br /&gt;
  result = num1-num2&lt;br /&gt;
 end&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Download&amp;diff=1472</id>
		<title>Download</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Download&amp;diff=1472"/>
				<updated>2012-05-05T17:53:06Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Undo spam, there's been SOO much spam recently&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== You can download the latest version of ComputerCraft [http://www.minecraftforum.net/topic/892282-11-computercraft-13/ here]. ===&lt;br /&gt;
&lt;br /&gt;
{{Changelog}}&lt;br /&gt;
[[Category:Lists]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1363</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1363"/>
				<updated>2012-04-25T16:17:56Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version 1.33 for Minecraft 1.2.5.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1362</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1362"/>
				<updated>2012-04-25T16:16:16Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Undo revision 1361 by 24.20.222.206 (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version '&amp;quot;1.33&amp;quot;' for Minecraft '''1.2.5''.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1361</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1361"/>
				<updated>2012-04-25T16:15:59Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version &amp;quot;'1.33'&amp;quot; for Minecraft '''1.2.5''.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1360</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1360"/>
				<updated>2012-04-25T16:15:32Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version '&amp;quot;1.33&amp;quot;' for Minecraft '''1.2.5''.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1359</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1359"/>
				<updated>2012-04-25T16:15:02Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version '''1.33''' for Minecraft '''1.2.5''.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1358</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1358"/>
				<updated>2012-04-25T16:14:47Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version '''1.33'' for Minecraft '''1.2.5''.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1357</id>
		<title>Template:News</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Template:News&amp;diff=1357"/>
				<updated>2012-04-25T16:14:36Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ComputerCraft is currently at version '''1.33''' for Minecraft '''1.2.5''.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=1355</id>
		<title>Getting Started</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=1355"/>
				<updated>2012-04-25T16:07:14Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Update '1.2.4' to '1.2.5'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Perquisite: Installing the mods ==&lt;br /&gt;
'''It is very important to read everything carefully before asking questions.'''&lt;br /&gt;
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''&lt;br /&gt;
&lt;br /&gt;
# Install [http://www.minecraftforum.net/topic/75440- Risugami's ModLoader 1.2.5]&lt;br /&gt;
# Install [http://lexmanos.no-ip.org:8080/job/Forge/Recommended/ Minecraft Forge Recommended Build 1.2.5]&lt;br /&gt;
# Download the latest version of [http://www.minecraftforum.net/topic/892282- ComputerCraft 1.33 (1.2.5)]&lt;br /&gt;
# Extract the .zip file in *minecraft folder*\mods\. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')&lt;br /&gt;
&lt;br /&gt;
== Step 1: Crafting the console ==&lt;br /&gt;
The recipe is simple:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
|A1=stone |B1=stone      |C1=stone&lt;br /&gt;
|A2=stone |B2=redstone   |C2=stone&lt;br /&gt;
|A3=stone |B3=glass pane |C3=stone&lt;br /&gt;
|Output=console&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Right click on the console to use it.&amp;lt;br /&amp;gt;&lt;br /&gt;
These are important to remember:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Shortcut&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Usage&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + T&lt;br /&gt;
|Closes the current program.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + R&lt;br /&gt;
|Reboots the console.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + S&lt;br /&gt;
|Forcefully shuts down the computer.&lt;br /&gt;
|}&lt;br /&gt;
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!&amp;lt;br /&amp;gt;&lt;br /&gt;
These are forced and will close the current program, even if it is still running.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Wiring it all up ==&lt;br /&gt;
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.&lt;br /&gt;
However, this mod can do much more. If you need to connect multiple wires to one side, you can just use RedPower's cables. Easy peasy.&lt;br /&gt;
Or, you don't do anything in this part. The computer has some great games shipped with and it is even capable of loading web pages.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Programming your system ==&lt;br /&gt;
If you've programmed before this shouldn't be hard. It'll feel very comfortable.&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
 edit &amp;lt;filename&amp;gt;&lt;br /&gt;
in the terminal to open the included feature-rich &amp;lt;!-- Save and exit!!! --&amp;gt; text editor. To get the hang of Lua if you're new, use&lt;br /&gt;
 edit /rom/programs/redset&lt;br /&gt;
to view the code of a simple program 'redset'.&lt;br /&gt;
&lt;br /&gt;
Navigating is easy.&lt;br /&gt;
 &amp;gt; ls&lt;br /&gt;
 rom&lt;br /&gt;
 &amp;gt; cd rom&lt;br /&gt;
 rom&amp;gt; ls&lt;br /&gt;
 apis   help   programs&lt;br /&gt;
 startup&lt;br /&gt;
 rom&amp;gt;cd programs&lt;br /&gt;
 rom/programs&amp;gt;cd /&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
To say it in English: ls '''l'''i'''s'''ts the files and folders in a directory, while cd changes the '''c'''urrent '''d'''irectory. / is the root of the computer.&lt;br /&gt;
Again, you don't have to program, but it's a big part of the mod. But you can still play those games.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Test it ==&lt;br /&gt;
Make sure that your program is bug-proof before using it as something important. A system controlling the state of an IndustrialCraft² Mark-III Nuclear Reactor to prevent it from overheating shouldn't crash every now and then with &amp;quot;Too long without yielding&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Extend it ==&lt;br /&gt;
Give back your part to the community. Help others on the forums or improve the wiki. Or, make your own OS or shell to run on the computers and share it with everybody. You can even create your own peripheral blocks using the API to create even a bigger system. A mainframe, for example.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1343</id>
		<title>Talk:Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1343"/>
				<updated>2012-04-22T17:49:47Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== I think this can be more &amp;quot;Noob&amp;quot; friendly ==&lt;br /&gt;
&lt;br /&gt;
i am a noob and have just started to use Computer Craft. I was learning how to make a password protected lock and i understood all of it, until it said, &amp;quot; Now to start it, we have the computer call the function after it declares it.&amp;quot; This confused me very much and i was hoping someone could clarify or edit the page to be even more &amp;quot;Noob&amp;quot; friendly.&lt;br /&gt;
&lt;br /&gt;
24.20.22.206:&lt;br /&gt;
 Try the 'Better / Alternative Code', you might understand that more.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1342</id>
		<title>Talk:Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1342"/>
				<updated>2012-04-22T17:49:19Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== In response to 24.20.222.206 who reverted my changes and commented &amp;quot;Make code better, again&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
How is it 'better' to leave the computer running when it's not needed?&lt;br /&gt;
Assuming this is the desired behaviour, why is it 'better' to reboot the computer each time instead of using a loop?&lt;br /&gt;
And assuming ''that'' is the desired behaviour, why is it 'better' to have the call to os.reboot() repeated inside the if blocks instead of once after the if?&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 24.20.22.206:&lt;br /&gt;
 Loop uses more memory. Also, there's no difference, do you really care that much?&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;br /&gt;
::I reverted changes from two users. This guide is supposed to be a reasonably low level tutorial. Simply slapping code on a page is not a tutorial, hence the previous version with screen shots is more noob friendly. Secondly, the latter version used variables that don't need to be variables. [[Special:Contributions/121.45.75.253|121.45.75.253]] 14:07, 16 April 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
== I think this can be more &amp;quot;Noob&amp;quot; friendly ==&lt;br /&gt;
&lt;br /&gt;
i am a noob and have just started to use Computer Craft. I was learning how to make a password protected lock and i understood all of it, until it said, &amp;quot; Now to start it, we have the computer call the function after it declares it.&amp;quot; This confused me very much and i was hoping someone could clarify or edit the page to be even more &amp;quot;Noob&amp;quot; friendly.&lt;br /&gt;
&lt;br /&gt;
24.20.22.206:&lt;br /&gt;
 Try the 'Better / Alternative Code', you might understand that more.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Delay_function&amp;diff=1338</id>
		<title>Talk:Making a Delay function</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Delay_function&amp;diff=1338"/>
				<updated>2012-04-21T23:51:31Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Created page with &amp;quot;==Useless Page?==  There's already sleep(seconds), there's no need for this page?&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Useless Page?==&lt;br /&gt;
 There's already sleep(seconds), there's no need for this page?&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1320</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1320"/>
				<updated>2012-04-18T20:04:12Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* How to make it */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a computer output redstone current when the right password is typed in. The current is then used to trigger an iron door.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
&lt;br /&gt;
A password protected door is actually pretty easy, if you break it into steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you need to craft a computer, and connect the back to an iron door with redstone. Like this:&lt;br /&gt;
[[File:Tutorial1.png]]&lt;br /&gt;
[[File:cTutorial2.png]]&lt;br /&gt;
&lt;br /&gt;
Once you're done with the basics, open the computer and edit the &amp;quot;startup&amp;quot; file. (type in 'edit startup')&lt;br /&gt;
This will make it so the program will be executed when the computer boots.&lt;br /&gt;
&lt;br /&gt;
Once you access the startup file, enter in these two lines.&lt;br /&gt;
[[File:CTutorial3.png]]&lt;br /&gt;
(alternatively, if you don't want people looking at your password, E.G in a server, type this code ( instead of 't = io.read()' ): t = read(&amp;quot;*&amp;quot;) , that will * out the password)&lt;br /&gt;
The first line defines a function, so that we can repeat the program if a password is entered,&lt;br /&gt;
and the second line is assigning whatever the user types to the variable, &amp;quot;t&amp;quot;,&lt;br /&gt;
So for example, if I typed &amp;quot;qwerty&amp;quot;, it would be t = &amp;quot;qwerty&amp;quot;. It also overrides anything else the user types in,&lt;br /&gt;
so if I typed in &amp;quot;programs&amp;quot;, it would just be t = &amp;quot;programs&amp;quot;, and not act as the programs command in the regular&lt;br /&gt;
OS. This can very useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you're done with the previous lines, enter in the following line:&lt;br /&gt;
[[File:CTutorial4.png]]&lt;br /&gt;
&lt;br /&gt;
This makes it so the program checks if the variable that we declared earlier, &amp;quot;t&amp;quot;, equals &amp;quot;password&amp;quot;. (You can change password to what you want the actual password to be.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But now you'll need to put in what to do, depending on if the user typed in the right password.&lt;br /&gt;
This next set of lines will do that:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial5.png]]&lt;br /&gt;
&lt;br /&gt;
Now, this may seem complicated, but it's really simple. The four lines after the if line, determine what the computer will do if the password is correct. So if it's correct, It'll set the redstone output from it's back to true (on), and open the door. (this is the &amp;quot;redstone.setOutput(&amp;quot;back&amp;quot;, true)&amp;quot; command.) It'll then wait two seconds, and turn the redstone back off again. It'll then repeat the function, so you don't need to reboot the computer.&lt;br /&gt;
&lt;br /&gt;
However, the last two lines dictate what the computer will do if the password is wrong, which is really just not opening the door, and repeating the function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And now the finishing touches:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial6.png]]&lt;br /&gt;
&lt;br /&gt;
This adds the &amp;quot;Ends&amp;quot; to the if which is inside the function, and the function. So we've declared our function.&lt;br /&gt;
Now to start it, we have the computer call the function after it declares it.&lt;br /&gt;
&lt;br /&gt;
Well, you should have your own password protected door!&lt;br /&gt;
Feel free to change the script around, maybe add a few success/failure messages, etc, etc.&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, Pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally, see the [http://computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door#Stop_people_from_terminating_your_lock No termination section] to stop people from exiting your lock, if someone exits your lock, they could edit your lock file, and finding out your password, now you don't want that!)&lt;br /&gt;
&lt;br /&gt;
= Alternative / Better code =&lt;br /&gt;
&lt;br /&gt;
Type 'edit startup' and type in this code: &lt;br /&gt;
(Use Ctrl + T to terminate the program, all code is explained in the comments, the --'s. It's good to read the comments, so you actually know what the code does, you do not need to have the comments in your code, of course)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Stop people from terminating your lock =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1319</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1319"/>
				<updated>2012-04-18T20:02:58Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* How to make it */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a computer output redstone current when the right password is typed in. The current is then used to trigger an iron door.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
&lt;br /&gt;
A password protected door is actually pretty easy, if you break it into steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you need to craft a computer, and connect the back to an iron door with redstone. Like this:&lt;br /&gt;
[[File:Tutorial1.png]]&lt;br /&gt;
[[File:cTutorial2.png]]&lt;br /&gt;
&lt;br /&gt;
Once you're done with the basics, open the computer and edit the &amp;quot;startup&amp;quot; file. (type in 'edit startup')&lt;br /&gt;
This will make it so the program will be executed when the computer boots.&lt;br /&gt;
&lt;br /&gt;
Once you access the startup file, enter in these two lines.&lt;br /&gt;
[[File:CTutorial3.png]]&lt;br /&gt;
(alternatively, if you don't want people looking at your password, E.G in a server, type this code ( instead of 't = io.read()' ): t = read(&amp;quot;*&amp;quot;) , that will * out the password)&lt;br /&gt;
The first line defines a function, so that we can repeat the program if a password is entered,&lt;br /&gt;
and the second line is assigning whatever the user types to the variable, &amp;quot;t&amp;quot;,&lt;br /&gt;
So for example, if I typed &amp;quot;qwerty&amp;quot;, it would be t = &amp;quot;qwerty&amp;quot;. It also overrides anything else the user types in,&lt;br /&gt;
so if I typed in &amp;quot;programs&amp;quot;, it would just be t = &amp;quot;programs&amp;quot;, and not act as the programs command in the regular&lt;br /&gt;
OS. This can very useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you're done with the previous lines, enter in the following line:&lt;br /&gt;
[[File:CTutorial4.png]]&lt;br /&gt;
&lt;br /&gt;
This makes it so the program checks if the variable that we declared earlier, &amp;quot;t&amp;quot;, equals &amp;quot;password&amp;quot;. (You can change password to what you want the actual password to be.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But now you'll need to put in what to do, depending on if the user typed in the right password.&lt;br /&gt;
This next set of lines will do that:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial5.png]]&lt;br /&gt;
&lt;br /&gt;
Now, this may seem complicated, but it's really simple. The four lines after the if line, determine what the computer will do if the password is correct. So if it's correct, It'll set the redstone output from it's back to true (on), and open the door. (this is the &amp;quot;redstone.setOutput(&amp;quot;back&amp;quot;, true)&amp;quot; command.) It'll then wait two seconds, and turn the redstone back off again. It'll then repeat the function, so you don't need to reboot the computer.&lt;br /&gt;
&lt;br /&gt;
However, the last two lines dictate what the computer will do if the password is wrong, which is really just not opening the door, and repeating the function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And now the finishing touches:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial6.png]]&lt;br /&gt;
&lt;br /&gt;
This adds the &amp;quot;Ends&amp;quot; to the if which is inside the function, and the function. So we've declared our function.&lt;br /&gt;
Now to start it, we have the computer call the function after it declares it.&lt;br /&gt;
&lt;br /&gt;
Well, you should have your own password protected door!&lt;br /&gt;
Feel free to change the script around, maybe add a few success/failure messages, etc. etc.&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, Pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally, see the [http://computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door#Stop_people_from_terminating_your_lock No termination section] to stop people from exiting your lock)&lt;br /&gt;
&lt;br /&gt;
= Alternative / Better code =&lt;br /&gt;
&lt;br /&gt;
Type 'edit startup' and type in this code: &lt;br /&gt;
(Use Ctrl + T to terminate the program, all code is explained in the comments, the --'s. It's good to read the comments, so you actually know what the code does, you do not need to have the comments in your code, of course)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Stop people from terminating your lock =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1318</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1318"/>
				<updated>2012-04-18T20:01:04Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* How to make it */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a computer output redstone current when the right password is typed in. The current is then used to trigger an iron door.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
&lt;br /&gt;
A password protected door is actually pretty easy, if you break it into steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you need to craft a computer, and connect the back to an iron door with redstone. Like this:&lt;br /&gt;
[[File:Tutorial1.png]]&lt;br /&gt;
[[File:cTutorial2.png]]&lt;br /&gt;
&lt;br /&gt;
Once you're done with the basics, open the computer and edit the &amp;quot;startup&amp;quot; file. (type in 'edit startup')&lt;br /&gt;
This will make it so the program will be executed when the computer boots.&lt;br /&gt;
&lt;br /&gt;
Once you access the startup file, enter in these two lines.&lt;br /&gt;
[[File:CTutorial3.png]]&lt;br /&gt;
(alternatively, if you don't want people looking at your password, E.G in a server, type this code ( instead of 't = io.read()' ): t = read(&amp;quot;*&amp;quot;) , that will * out the password)&lt;br /&gt;
The first line defines a function, so that we can repeat the program if a password is entered,&lt;br /&gt;
and the second line is assigning whatever the user types to the variable, &amp;quot;t&amp;quot;,&lt;br /&gt;
So for example, if I typed &amp;quot;qwerty&amp;quot;, it would be t = &amp;quot;qwerty&amp;quot;. It also overrides anything else the user types in,&lt;br /&gt;
so if I typed in &amp;quot;programs&amp;quot;, it would just be t = &amp;quot;programs&amp;quot;, and not act as the programs command in the regular&lt;br /&gt;
OS. This can very useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you're done with the previous lines, enter in the following line:&lt;br /&gt;
[[File:CTutorial4.png]]&lt;br /&gt;
&lt;br /&gt;
This makes it so the program checks if the variable that we declared earlier, &amp;quot;t&amp;quot;, equals &amp;quot;password&amp;quot;. (You can change password to what you want the actual password to be.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But now you'll need to put in what to do, depending on if the user typed in the right password.&lt;br /&gt;
This next set of lines will do that:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial5.png]]&lt;br /&gt;
&lt;br /&gt;
Now, this may seem complicated, but it's really simple. The four lines after the if line, determine what the computer will do if the password is correct. So if it's correct, It'll set the redstone output from it's back to true (on), and open the door. (this is the &amp;quot;redstone.setOutput(&amp;quot;back&amp;quot;, true)&amp;quot; command.) It'll then wait two seconds, and turn the redstone back off again. It'll then repeat the function, so you don't need to reboot the computer.&lt;br /&gt;
&lt;br /&gt;
However, the last two lines dictate what the computer will do if the password is wrong, which is really just not opening the door, and repeating the function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And now the finishing touches:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial6.png]]&lt;br /&gt;
&lt;br /&gt;
This adds the &amp;quot;Ends&amp;quot; to the if which is inside the function, and the function. So we've declared our function.&lt;br /&gt;
Now to start it, we have the computer call the function after it declares it.&lt;br /&gt;
&lt;br /&gt;
Well, you should have your own password protected door!&lt;br /&gt;
Feel free to change the script around, maybe add a few success/failure messages, etc. etc.&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, Pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally)&lt;br /&gt;
&lt;br /&gt;
= Alternative / Better code =&lt;br /&gt;
&lt;br /&gt;
Type 'edit startup' and type in this code: &lt;br /&gt;
(Use Ctrl + T to terminate the program, all code is explained in the comments, the --'s. It's good to read the comments, so you actually know what the code does, you do not need to have the comments in your code, of course)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Stop people from terminating your lock =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1317</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1317"/>
				<updated>2012-04-18T20:00:12Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* How to make it */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a computer output redstone current when the right password is typed in. The current is then used to trigger an iron door.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
&lt;br /&gt;
A password protected door is actually pretty easy, if you break it into steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you need to craft a computer, and connect the back to an iron door with redstone. Like this:&lt;br /&gt;
[[File:Tutorial1.png]]&lt;br /&gt;
[[File:cTutorial2.png]]&lt;br /&gt;
&lt;br /&gt;
Once you're done with the basics, open the computer and edit the &amp;quot;startup&amp;quot; file. (type in 'edit startup')&lt;br /&gt;
This will make it so the program will be executed when the computer boots.&lt;br /&gt;
&lt;br /&gt;
Once you access the startup file, enter in these two lines.&lt;br /&gt;
[[File:CTutorial3.png]]&lt;br /&gt;
(alternatively, if you don't want people looking at your password, E.G in a server, type this code ( instead of 't = io.read()' ): &amp;lt;pre&amp;gt;t = read(&amp;quot;*&amp;quot;)&amp;lt;/pre&amp;gt;&lt;br /&gt;
The first line defines a function, so that we can repeat the program if a password is entered,&lt;br /&gt;
and the second line is assigning whatever the user types to the variable, &amp;quot;t&amp;quot;,&lt;br /&gt;
So for example, if I typed &amp;quot;qwerty&amp;quot;, it would be t = &amp;quot;qwerty&amp;quot;. It also overrides anything else the user types in,&lt;br /&gt;
so if I typed in &amp;quot;programs&amp;quot;, it would just be t = &amp;quot;programs&amp;quot;, and not act as the programs command in the regular&lt;br /&gt;
OS. This can very useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you're done with the previous lines, enter in the following line:&lt;br /&gt;
[[File:CTutorial4.png]]&lt;br /&gt;
&lt;br /&gt;
This makes it so the program checks if the variable that we declared earlier, &amp;quot;t&amp;quot;, equals &amp;quot;password&amp;quot;. (You can change password to what you want the actual password to be.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But now you'll need to put in what to do, depending on if the user typed in the right password.&lt;br /&gt;
This next set of lines will do that:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial5.png]]&lt;br /&gt;
&lt;br /&gt;
Now, this may seem complicated, but it's really simple. The four lines after the if line, determine what the computer will do if the password is correct. So if it's correct, It'll set the redstone output from it's back to true (on), and open the door. (this is the &amp;quot;redstone.setOutput(&amp;quot;back&amp;quot;, true)&amp;quot; command.) It'll then wait two seconds, and turn the redstone back off again. It'll then repeat the function, so you don't need to reboot the computer.&lt;br /&gt;
&lt;br /&gt;
However, the last two lines dictate what the computer will do if the password is wrong, which is really just not opening the door, and repeating the function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And now the finishing touches:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial6.png]]&lt;br /&gt;
&lt;br /&gt;
This adds the &amp;quot;Ends&amp;quot; to the if which is inside the function, and the function. So we've declared our function.&lt;br /&gt;
Now to start it, we have the computer call the function after it declares it.&lt;br /&gt;
&lt;br /&gt;
Well, you should have your own password protected door!&lt;br /&gt;
Feel free to change the script around, maybe add a few success/failure messages, etc. etc.&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, Pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally)&lt;br /&gt;
&lt;br /&gt;
= Alternative / Better code =&lt;br /&gt;
&lt;br /&gt;
Type 'edit startup' and type in this code: &lt;br /&gt;
(Use Ctrl + T to terminate the program, all code is explained in the comments, the --'s. It's good to read the comments, so you actually know what the code does, you do not need to have the comments in your code, of course)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Stop people from terminating your lock =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1316</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1316"/>
				<updated>2012-04-18T19:57:14Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a computer output redstone current when the right password is typed in. The current is then used to trigger an iron door.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
&lt;br /&gt;
A password protected door is actually pretty easy, if you break it into steps.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, you need to craft a computer, and connect the back to an iron door with redstone. Like this:&lt;br /&gt;
[[File:Tutorial1.png]]&lt;br /&gt;
[[File:cTutorial2.png]]&lt;br /&gt;
&lt;br /&gt;
Once you're done with the basics, open the computer and edit the &amp;quot;startup&amp;quot; file. (type in 'edit startup')&lt;br /&gt;
This will make it so the program will be executed when the computer boots.&lt;br /&gt;
&lt;br /&gt;
Once you access the startup file, enter in these two lines.&lt;br /&gt;
[[File:CTutorial3.png]]&lt;br /&gt;
&lt;br /&gt;
The first line defines a function, so that we can repeat the program if a password is entered,&lt;br /&gt;
and the second line is assigning whatever the user types to the variable, &amp;quot;t&amp;quot;,&lt;br /&gt;
So for example, if I typed &amp;quot;qwerty&amp;quot;, it would be t = &amp;quot;qwerty&amp;quot;. It also overrides anything else the user types in,&lt;br /&gt;
so if I typed in &amp;quot;programs&amp;quot;, it would just be t = &amp;quot;programs&amp;quot;, and not act as the programs command in the regular&lt;br /&gt;
OS. This can very useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
After you're done with the previous lines, enter in the following line:&lt;br /&gt;
[[File:CTutorial4.png]]&lt;br /&gt;
&lt;br /&gt;
This makes it so the program checks if the variable that we declared earlier, &amp;quot;t&amp;quot;, equals &amp;quot;password&amp;quot;. (You can change password to what you want the actual password to be.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
But now you'll need to put in what to do, depending on if the user typed in the right password.&lt;br /&gt;
This next set of lines will do that:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial5.png]]&lt;br /&gt;
&lt;br /&gt;
Now, this may seem complicated, but it's really simple. The four lines after the if line, determine what the computer will do if the password is correct. So if it's correct, It'll set the redstone output from it's back to true (on), and open the door. (this is the &amp;quot;redstone.setOutput(&amp;quot;back&amp;quot;, true)&amp;quot; command.) It'll then wait two seconds, and turn the redstone back off again. It'll then repeat the function, so you don't need to reboot the computer.&lt;br /&gt;
&lt;br /&gt;
However, the last two lines dictate what the computer will do if the password is wrong, which is really just not opening the door, and repeating the function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And now the finishing touches:&lt;br /&gt;
&lt;br /&gt;
[[File:CTutorial6.png]]&lt;br /&gt;
&lt;br /&gt;
This adds the &amp;quot;Ends&amp;quot; to the if which is inside the function, and the function. So we've declared our function.&lt;br /&gt;
Now to start it, we have the computer call the function after it declares it.&lt;br /&gt;
&lt;br /&gt;
Well, you should have your own password protected door!&lt;br /&gt;
Feel free to change the script around, maybe add a few success/failure messages, etc. etc.&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, Pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Alternative / Better code =&lt;br /&gt;
&lt;br /&gt;
Type 'edit startup' and type in this code: &lt;br /&gt;
(Use Ctrl + T to terminate the program, all code is explained in the comments, the --'s. It's good to read the comments, so you actually know what the code does, you do not need to have the comments in your code, of course)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboot the computer, reopening the lock&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
= Stop people from terminating your lock =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1291</id>
		<title>Talk:Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1291"/>
				<updated>2012-04-16T02:51:57Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* In response to 24.20.222.206 who reverted my changes and commented &amp;quot;Make code better, again&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== In response to 24.20.222.206 who reverted my changes and commented &amp;quot;Make code better, again&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
How is it 'better' to leave the computer running when it's not needed?&lt;br /&gt;
Assuming this is the desired behaviour, why is it 'better' to reboot the computer each time instead of using a loop?&lt;br /&gt;
And assuming ''that'' is the desired behaviour, why is it 'better' to have the call to os.reboot() repeated inside the if blocks instead of once after the if?&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 24.20.22.206:&lt;br /&gt;
 Loop uses more memory. Also, there's no difference, do you really care that much?&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1290</id>
		<title>Talk:Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Making_a_Password_Protected_Door&amp;diff=1290"/>
				<updated>2012-04-16T02:51:37Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* In response to 24.20.222.206 who reverted my changes and commented &amp;quot;Make code better, again&amp;quot; */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== In response to 24.20.222.206 who reverted my changes and commented &amp;quot;Make code better, again&amp;quot; ==&lt;br /&gt;
&lt;br /&gt;
How is it 'better' to leave the computer running when it's not needed?&lt;br /&gt;
Assuming this is the desired behaviour, why is it 'better' to reboot the computer each time instead of using a loop?&lt;br /&gt;
And assuming ''that'' is the desired behaviour, why is it 'better' to have the call to os.reboot() repeated inside the if blocks instead of once after the if?&lt;br /&gt;
 &amp;lt;b&amp;gt;24.20.222.206&amp;lt;/b&amp;gt;&lt;br /&gt;
 &amp;lt;pre&amp;gt;&lt;br /&gt;
 Loop uses more memory. Also, there's no difference, do you really care that much?&lt;br /&gt;
 &amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=1286</id>
		<title>Getting Started</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=1286"/>
				<updated>2012-04-15T18:01:58Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* Perquisite: Installing the mods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Perquisite: Installing the mods ==&lt;br /&gt;
'''It is very important to read everything carefully before asking questions.'''&lt;br /&gt;
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''&lt;br /&gt;
&lt;br /&gt;
# Install [http://www.minecraftforum.net/topic/75440- Risugami's ModLoader 1.2.4]&lt;br /&gt;
# Install [http://www.minecraftforum.net/topic/86765- SDK's ModLoaderMP 1.2.4]&lt;br /&gt;
# Install [http://lexmanos.no-ip.org:8080/job/Forge/Recommended/ Minecraft Forge Recommended Build 1.2.4]&lt;br /&gt;
# Download the latest version of [http://www.minecraftforum.net/topic/892282- ComputerCraft 1.32 (1.2.4)]&lt;br /&gt;
# Extract the .zip file in *minecraft folder*\mods\. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')&lt;br /&gt;
&lt;br /&gt;
== Step 1: Crafting the console ==&lt;br /&gt;
The recipe is simple:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
|A1=stone |B1=stone      |C1=stone&lt;br /&gt;
|A2=stone |B2=redstone   |C2=stone&lt;br /&gt;
|A3=stone |B3=glass pane |C3=stone&lt;br /&gt;
|Output=console&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Right click on the console to use it.&amp;lt;br /&amp;gt;&lt;br /&gt;
These are important to remember:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Shortcut&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Usage&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + T&lt;br /&gt;
|Closes the current program.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + R&lt;br /&gt;
|Reboots the console.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + S&lt;br /&gt;
|Forcefully shuts down the computer.&lt;br /&gt;
|}&lt;br /&gt;
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!&amp;lt;br /&amp;gt;&lt;br /&gt;
These are forced and will close the current program, even if it is still running.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Wiring it all up ==&lt;br /&gt;
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.&lt;br /&gt;
However, this mod can do much more. If you need to connect multiple wires to one side, you can just use RedPower's cables. Easy peasy.&lt;br /&gt;
Or, you don't do anything in this part. The computer has some great games shipped with and it is even capable of loading web pages.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Programming your system ==&lt;br /&gt;
If you've programmed before this shouldn't be hard. It'll feel very comfortable.&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
 edit &amp;lt;filename&amp;gt;&lt;br /&gt;
in the terminal to open the included feature-rich &amp;lt;!-- Save and exit!!! --&amp;gt; text editor. To get the hang of Lua if you're new, use&lt;br /&gt;
 edit /rom/programs/redset&lt;br /&gt;
to view the code of a simple program 'redset'.&lt;br /&gt;
&lt;br /&gt;
Navigating is easy.&lt;br /&gt;
 &amp;gt; ls&lt;br /&gt;
 rom&lt;br /&gt;
 &amp;gt; cd rom&lt;br /&gt;
 rom&amp;gt; ls&lt;br /&gt;
 apis   help   programs&lt;br /&gt;
 startup&lt;br /&gt;
 rom&amp;gt;cd programs&lt;br /&gt;
 rom/programs&amp;gt;cd /&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
To say it in English: ls '''l'''i'''s'''ts the files and folders in a directory, while cd changes the '''c'''urrent '''d'''irectory. / is the root of the computer.&lt;br /&gt;
Again, you don't have to program, but it's a big part of the mod. But you can still play those games.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Test it ==&lt;br /&gt;
Make sure that your program is bug-proof before using it as something important. A system controlling the state of an IndustrialCraft² Mark-III Nuclear Reactor to prevent it from overheating shouldn't crash every now and then with &amp;quot;Too long without yielding&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Extend it ==&lt;br /&gt;
Give back your part to the community. Help others on the forums or improve the wiki. Or, make your own OS or shell to run on the computers and share it with everybody. You can even create your own peripheral blocks using the API to create even a bigger system. A mainframe, for example.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=1285</id>
		<title>Getting Started</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Getting_Started&amp;diff=1285"/>
				<updated>2012-04-15T18:01:33Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Permanent links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Perquisite: Installing the mods ==&lt;br /&gt;
'''It is very important to read everything carefully before asking questions.'''&lt;br /&gt;
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''&lt;br /&gt;
&lt;br /&gt;
# Install [http://www.minecraftforum.net/topic/75440- Risugami's ModLoader 1.2.4]&lt;br /&gt;
# Install [http://www.minecraftforum.net/topic/86765- SDK's ModLoaderMP 1.2.4]&lt;br /&gt;
# Install [http://lexmanos.no-ip.org:8080/job/Forge/Recommended/ Minecraft Forge Recommended Build 1.2.4]&lt;br /&gt;
# Download the latest version of [http://www.minecraftforum.net/topic/892282-123-computercraft-131-now-updated-and-with-monitors/ ComputerCraft 1.32 (1.2.4)]&lt;br /&gt;
# Extract the .zip file in *minecraft folder*\mods\. (Tip: If on Windows, on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder, there's your Minecraft folder. If on Mac, open Finder, hit Command+Shift+G and type ~/Library/ then hit enter, open 'Application Support' then open 'minecraft')&lt;br /&gt;
&lt;br /&gt;
== Step 1: Crafting the console ==&lt;br /&gt;
The recipe is simple:&amp;lt;br /&amp;gt;&lt;br /&gt;
{{Crafting grid&lt;br /&gt;
|A1=stone |B1=stone      |C1=stone&lt;br /&gt;
|A2=stone |B2=redstone   |C2=stone&lt;br /&gt;
|A3=stone |B3=glass pane |C3=stone&lt;br /&gt;
|Output=console&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Right click on the console to use it.&amp;lt;br /&amp;gt;&lt;br /&gt;
These are important to remember:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;200px&amp;quot;|Shortcut&lt;br /&gt;
!style=&amp;quot;background:#EEE&amp;quot; width=&amp;quot;*&amp;quot;|Usage&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + T&lt;br /&gt;
|Closes the current program.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + R&lt;br /&gt;
|Reboots the console.&lt;br /&gt;
|-&lt;br /&gt;
|CTRL + S&lt;br /&gt;
|Forcefully shuts down the computer.&lt;br /&gt;
|}&lt;br /&gt;
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!&amp;lt;br /&amp;gt;&lt;br /&gt;
These are forced and will close the current program, even if it is still running.&lt;br /&gt;
&lt;br /&gt;
== Step 2: Wiring it all up ==&lt;br /&gt;
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.&lt;br /&gt;
However, this mod can do much more. If you need to connect multiple wires to one side, you can just use RedPower's cables. Easy peasy.&lt;br /&gt;
Or, you don't do anything in this part. The computer has some great games shipped with and it is even capable of loading web pages.&lt;br /&gt;
&lt;br /&gt;
== Step 3: Programming your system ==&lt;br /&gt;
If you've programmed before this shouldn't be hard. It'll feel very comfortable.&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
 edit &amp;lt;filename&amp;gt;&lt;br /&gt;
in the terminal to open the included feature-rich &amp;lt;!-- Save and exit!!! --&amp;gt; text editor. To get the hang of Lua if you're new, use&lt;br /&gt;
 edit /rom/programs/redset&lt;br /&gt;
to view the code of a simple program 'redset'.&lt;br /&gt;
&lt;br /&gt;
Navigating is easy.&lt;br /&gt;
 &amp;gt; ls&lt;br /&gt;
 rom&lt;br /&gt;
 &amp;gt; cd rom&lt;br /&gt;
 rom&amp;gt; ls&lt;br /&gt;
 apis   help   programs&lt;br /&gt;
 startup&lt;br /&gt;
 rom&amp;gt;cd programs&lt;br /&gt;
 rom/programs&amp;gt;cd /&lt;br /&gt;
 &amp;gt;&lt;br /&gt;
To say it in English: ls '''l'''i'''s'''ts the files and folders in a directory, while cd changes the '''c'''urrent '''d'''irectory. / is the root of the computer.&lt;br /&gt;
Again, you don't have to program, but it's a big part of the mod. But you can still play those games.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Test it ==&lt;br /&gt;
Make sure that your program is bug-proof before using it as something important. A system controlling the state of an IndustrialCraft² Mark-III Nuclear Reactor to prevent it from overheating shouldn't crash every now and then with &amp;quot;Too long without yielding&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Step 5: Extend it ==&lt;br /&gt;
Give back your part to the community. Help others on the forums or improve the wiki. Or, make your own OS or shell to run on the computers and share it with everybody. You can even create your own peripheral blocks using the API to create even a bigger system. A mainframe, for example.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1284</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1284"/>
				<updated>2012-04-15T17:55:59Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Make code better, again&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a Computer output redstone current when the right password is typed in. The current is used to trigger an iron door on the left side of the Computer, you can change the side, of course.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
Here's the code for it, I'll explain what everything does in the comments. (the --'s).&lt;br /&gt;
In your Computer, type 'edit startup'. Then write this code into there. (You don't need the comments (the --'s) in the final code)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboots the computer, effectively reopening the lock.&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboots the computer, effectively reopening the lock.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally. Visit the 'No Termination' section to stop people from exiting your lock.)&lt;br /&gt;
&lt;br /&gt;
= No Termination =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1283</id>
		<title>Making a Password Protected Door</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Making_a_Password_Protected_Door&amp;diff=1283"/>
				<updated>2012-04-15T17:55:27Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: /* How to make it */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This tutorial covers on how to make a Computer output redstone current when the right password is typed in. The current is used to trigger an iron door on the left side of the Computer, you can change the side, of course.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
= How to make it =&lt;br /&gt;
Here's the code for it, I'll explain what everything does in the comments. (the --'s).&lt;br /&gt;
In your Computer, type 'edit startup'. Then write this code into there. (You don't need the comments (the --'s) in the final code)&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local side = &amp;quot;left&amp;quot; -- Change left to whatever side your door / redstone is on, E.G: left, right, front, back, bottom, top. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local password = &amp;quot;bacon&amp;quot; -- Change bacon to what you want your password to be. Be sure to leave the &amp;quot;s around it, though&lt;br /&gt;
local opentime = 5 -- Change 5 to how long (in seconds) you want the redstone current to be on. Don't put &amp;quot;s around it, though&lt;br /&gt;
term.clear() -- Clears the screen&lt;br /&gt;
term.setCursorPos(1,1) -- Fixes the cursor position&lt;br /&gt;
write(&amp;quot;Password: &amp;quot;) -- Prints 'Password: ' to the screen&lt;br /&gt;
local input = read(&amp;quot;*&amp;quot;) -- Makes the variable 'input' have the contents of what the user types in, the &amp;quot;*&amp;quot; part sensors out the password&lt;br /&gt;
if input == (password) then -- Checks if the user inputted the correct password&lt;br /&gt;
 term.clear() -- Already explained up top&lt;br /&gt;
 term.setCursorPos(1,1)&lt;br /&gt;
 print(&amp;quot;Password correct!&amp;quot;) -- Prints 'Password correct!' to the screen&lt;br /&gt;
 rs.setOutput(side,true) -- Output a redstone current to the side you specified&lt;br /&gt;
 sleep(opentime) -- Wait the amount of seconds you specifed, then..&lt;br /&gt;
 rs.setOutput(side,false) -- Stop outputting a redstone current&lt;br /&gt;
 os.reboot() -- Reboots the computer, effectively reopening the lock.&lt;br /&gt;
else -- Checks if the user didn't input the correct password&lt;br /&gt;
 term.clear()&lt;br /&gt;
 term.setCursorPos()&lt;br /&gt;
 print(&amp;quot;Password incorrect!&amp;quot;) -- Prints 'Password incorrect!' to the screen&lt;br /&gt;
 sleep(2) -- Waits 2 seconds&lt;br /&gt;
 os.reboot() -- Reboots the computer, effectively reopening the lock.&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(NOTE: If the program fails somehow, pressing and holding Ctrl + T will terminate it, and allow you to edit it like normally. Visit the 'No Termination' section to stop people from exiting your lock.)&lt;br /&gt;
&lt;br /&gt;
= Alternative Ending =&lt;br /&gt;
&lt;br /&gt;
If you want your program to start again when it gets to the end instead of shutting down the computer, add 'do while true' before the first line,  delete the last line 'os.shutdown' and add an extra 'end' at the end so there are two of them.&lt;br /&gt;
do while (condition) ... end is a loop structure. While the condition equates to true, it will keep executing the code that lies between the do while (condition) and the end. We can make it always loop by simply writing true as the condition.&lt;br /&gt;
&lt;br /&gt;
= No Termination =&lt;br /&gt;
&lt;br /&gt;
If you don't want people holding CTRL+T and quitting your lock, use this code at the top of your program:&lt;br /&gt;
&amp;lt;pre&amp;gt;os.pullEvent = os.pullEventRaw&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Talk:Turtle_Tutorial&amp;diff=1181</id>
		<title>Talk:Turtle Tutorial</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Talk:Turtle_Tutorial&amp;diff=1181"/>
				<updated>2012-03-26T18:15:29Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;i need help,i get this error from my code&lt;br /&gt;
&lt;br /&gt;
mine:1: attempt to call nil&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
PS ( mine is the name of the program)&lt;br /&gt;
 What is your code?&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=364</id>
		<title>Wireless Modem</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=364"/>
				<updated>2012-02-24T04:18:30Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;PAGE CURRENTLY IN BETA&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	<entry>
		<id>https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=363</id>
		<title>Wireless Modem</title>
		<link rel="alternate" type="text/html" href="https://www.computercraft.info/wiki/index.php?title=Wireless_Modem&amp;diff=363"/>
				<updated>2012-02-24T04:17:50Z</updated>
		
		<summary type="html">&lt;p&gt;24.20.222.206: Created page with &amp;quot;The modem is a wireless modem, it does shtuff.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The modem is a wireless modem, it does shtuff.&lt;/div&gt;</summary>
		<author><name>24.20.222.206</name></author>	</entry>

	</feed>