Difference between revisions of "Getting Started"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "=== Step 0: installing the mod(s) === '''It is very important to read everything carefully before asking questions.''' '''Also, the latest version this mod may not be compatib...")
 
Line 1: Line 1:
=== Step 0: installing the mod(s) ===
+
== Step 0: installing the mod(s) ==
 
'''It is very important to read everything carefully before asking questions.'''
 
'''It is very important to read everything carefully before asking questions.'''
 
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''
 
'''Also, the latest version this mod may not be compatible with the current Minecraft release.'''
Line 10: Line 10:
  
  
=== Step 1: crafting the console ===
+
== Step 1: crafting the console ==
 
The recipe is simple:<br />
 
The recipe is simple:<br />
 
[[File:J4wd7.png]]<br />
 
[[File:J4wd7.png]]<br />
Line 32: Line 32:
 
These are forced and will close the current program, even if it is still running.
 
These are forced and will close the current program, even if it is still running.
  
=== Step 2: wiring it all up ===
+
== Step 2: wiring it all up ==
 
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.
 
The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed.
 
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.
 
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.
 
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.
 
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.
  
=== Step 3: programming the darn thing ===
+
== Step 3: programming the darn thing ==
 
If you've programmed before this shouldn't be hard. It'll feel very comfortable.
 
If you've programmed before this shouldn't be hard. It'll feel very comfortable.
  

Revision as of 21:57, 11 March 2012

Step 0: installing the mod(s)

It is very important to read everything carefully before asking questions. Also, the latest version this mod may not be compatible with the current Minecraft release.

  1. Install Risugami's ModLoader 1.1.
  2. Install Flan's ModLoaderMP Unofficial Client 1.1 v2.
  3. Install Minecraft Forge Recommended Client.
  4. Download the latest version of ComputerCraft
  5. Extract the .zip file in *minecraft folder*\mods\. (Tip: on the main screen of Minecraft, go to 'Texture Packs' and click on 'Open texture pack folder'. Go up one folder et voilà, there's your Minecraft folder.)


Step 1: crafting the console

The recipe is simple:
File:J4wd7.png

Right click on the console to use it.
These are important to remember:

Shortcut Usage
CTRL + T Closes the current program.
CTRL + R Reboots the console.
CTRL + S Forcefully shuts down the computer.

NOTE: You have to hold the keyboard shortcuts down for at least 1 second!
These are forced and will close the current program, even if it is still running.

Step 2: wiring it all up

The console accepts many forms of redstone. For simple structures, such as a password protected door, only a single line of redstone is needed. 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. 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.

Step 3: programming the darn thing

If you've programmed before this shouldn't be hard. It'll feel very comfortable.

Type

edit <filename>

in the terminal to open the included feature-rich text editor. To get the hang of Lua if you're new, use

edit /rom/programs/redset

to view the code of a simple program 'redset'.

Navigating is easy.

> ls
rom
> cd rom
rom> ls
apis   help   programs
startup
rom>cd programs
rom/programs>cd /
>

To say it in English: ls lists the files and folders in a directory, while cd changes the current directory.