Difference between revisions of "Getting Started"
(kYAzbGVGpgJZY) |
(Undo revision 3065 by 85.115.3.242 (talk)) |
||
Line 1: | Line 1: | ||
− | + | == Prerequisite: Installing the mods == | |
+ | '''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.''' | ||
+ | |||
+ | # Install [http://jenkins.minecraftforge.net:7070/job/forge/171/ Minecraft Forge Recommended Build] | ||
+ | # Download the latest version of [http://www.minecraftforum.net/topic/892282- ComputerCraft] | ||
+ | # Copy OR extract the .zip file into *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') | ||
+ | <!-- Both the zip or folder work. Please do not edit this without proof. --> | ||
+ | |||
+ | == Step 1: Crafting your first console == | ||
+ | The recipe is simple:<br /> | ||
+ | {{Crafting grid | ||
+ | |A1=stone |B1=stone |C1=stone | ||
+ | |A2=stone |B2=redstone |C2=stone | ||
+ | |A3=stone |B3=glass pane |C3=stone | ||
+ | |Output=console | ||
+ | }} | ||
+ | <br /> | ||
+ | |||
+ | Right click on the console to use it.<br /> | ||
+ | Some important keys to remember: | ||
+ | {| border="1" cellpadding="2" cellspacing="0" | ||
+ | !style="background:#EEE" width="200px"|Shortcut | ||
+ | !style="background:#EEE" width="*"|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!<br /> | ||
+ | These are forced (CRTL+T can be disabled by a program). | ||
+ | |||
+ | == 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. | ||
+ | |||
+ | == Step 3: Programming your system == | ||
+ | If you've programmed anything before this shouldn't be hard. It'll feel very comfortable. | ||
+ | |||
+ | NOTE:You may also want to make some floppy disks to use along with your machine | ||
+ | |||
+ | Type | ||
+ | edit <filename> | ||
+ | in the terminal to open the included feature-rich <!-- Save and exit!!! --> text editor. To get the hang of Lua if you're new, use | ||
+ | edit /rom/programs/hello | ||
+ | to view the code of a simple program 'hello'. | ||
+ | |||
+ | 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 '''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. | ||
+ | |||
+ | == Step 4: Test it == | ||
+ | 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 "Too long without yielding". | ||
+ | |||
+ | == Step 5: Extend it == | ||
+ | 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. |
Revision as of 03:54, 21 September 2012
Contents
Prerequisite: Installing the mods
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.
- Install Minecraft Forge Recommended Build
- Download the latest version of ComputerCraft
- Copy OR extract the .zip file into *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')
Step 1: Crafting your first console
The recipe is simple:
Right click on the console to use it.
Some important keys 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 (CRTL+T can be disabled by a program).
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.
Step 3: Programming your system
If you've programmed anything before this shouldn't be hard. It'll feel very comfortable.
NOTE:You may also want to make some floppy disks to use along with your machine
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/hello
to view the code of a simple program 'hello'.
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. / is the root of the computer.
Step 4: Test it
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 "Too long without yielding".
Step 5: Extend it
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.