The Computer is the main block of ComputerCraft. This is the titular computer, which is the centerpiece of this mod.
Place the computer carefully, and just right click it to use. This will open the computer command line, where you may type the name of the program you would like to run or a built-in function of the computer.
The computer is capable of interacting with monitors and disk drives, through the use of the monitor and disk commands, respectively.
There are several video tutorials on CC Lua programming on YouTube, as well as tutorials in the official ComputerCraft Wiki
|CTRL+T||Terminates the current program.|
|CTRL+R||Reboots the computer|
|CTRL+S||Forcefully shuts down the computer|
Note that you have to hold down the keys for 1-3 seconds.
Please note: This mod requires knowledge of Lua to code programs. Most of the Lua commands for the Computer are shown with the help command. For instance, 'help monitor' or 'help disk'.
When using with Bundled Cables, the cables must connect straight out from the "side" of the computer, not across the side. Also be aware that changing the state of any signal turns off all the others. You must build in protection in your program to prevent (sometimes disastrous... think nuclear!) undesired side-effects.
Destroying a computer will wipe out any saved programs on that computer. As such, it is recommended to install a Disk Drive and save programs to a Floppy Disk. Also, destroying a computer while it is running a program may cause your tekkit client to crash. The safest way to terminate programs is by holding down CTRL-T for a few seconds (unless the programmer has built in termination protection).
Allows you to play through a text adventure.
Aliases a program under another name.
Lists all installed APIs.
Change Directory. used to navigate the computer
Clears all text on the Computer.
|copy or cp or dir||
Copies a file from one place to the next. "copy <from> <destination>"
|delete or rm||
Deletes a program. "delete <program name>"
Plays a music disk in an attached disk drive. "dj <side>"
Allows you to edit or create a new program. "edit <program name>"
Ejects the contents of an attached disk drive. "eject <side>"
Shuts down the Computer.
Host a GPS server over rednet or determine a position using trilateration. "gps <locate|host [x] [y] [z]>"
Basic program. Says "Hello World!" on the Computer.
Lists help options.
Shows the ID of the Computer.
Gets or sets the label of the Computer, or of Floppy Disks in attached disk drives. "label <get [side]|set [name|side[name]]|clear <side>>"
|list or ls||
Lists the contents of the folder you are in.
Brings you into a Lua Prompt.
Creates a directory. "mkdir <path>"
Connects to an attached monitor peripheral on specified side and runs a program on its display. "monitor <side> <program> <arguments>"
|move or mv or rename||
Moves a program from one place to another. "move <from> <destination>"
Shows all available programs, such as all of these.
Reboots the computer.
Shows all redstone connections.
Sends a redstone pulse through the specified side, for a configurable number of times and duration. "redpulse <"side> <count> <period>"
Plays Star Wars IV in ASCII style.
Program which interprets commands and runs programs.
Shuts down the Computer.
Shows the current time of the Minecraft world.
Allows you to play a 'Snake' like game.
Please note that the above list may not be complete. As such, anyone who finds a program not listed here is encouraged to edit this page and add it.
For more information on programming etc. try visiting the Computer Craft Wiki!
There are too many uses to list, there are infinite possibilities. Here are some basic examples.
- Password Doors
- Alarm System
- Monitor System
- In Game Clock
- Time Schedules
- Disco floor (redstone controller)