The Computer is the main block of ComputerCraft. This is the titular computer, which is the centerpiece of this mod.
Recipe[]
Usage[]
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).
Program |
Description |
---|---|
adventure |
Allows you to play through a text adventure. |
alias |
Aliases a program under another name. |
apis |
Lists all installed APIs. |
cd |
Change Directory. used to navigate the computer |
clear |
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>" |
dj |
Plays a music disk in an attached disk drive. "dj <side>" |
edit |
Allows you to edit or create a new program. "edit <program name>" |
eject |
Ejects the contents of an attached disk drive. "eject <side>" |
exit |
Shuts down the Computer. |
gps |
Host a GPS server over rednet or determine a position using trilateration. "gps <locate|host [x] [y] [z]>" |
hello |
Basic program. Says "Hello World!" on the Computer. |
help |
Lists help options. |
id |
Shows the ID of the Computer. |
label |
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. |
lua |
Brings you into a Lua Prompt. |
mkdir |
Creates a directory. "mkdir <path>" |
monitor |
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>" |
programs |
Shows all available programs, such as all of these. |
reboot |
Reboots the computer. |
redprobe |
Shows all redstone connections. |
redpulse |
Sends a redstone pulse through the specified side, for a configurable number of times and duration. "redpulse <"side> <count> <period>" |
secret/alongtimeago |
Plays Star Wars IV in ASCII style. |
shell |
Program which interprets commands and runs programs. |
shutdown |
Shuts down the Computer. |
time |
Shows the current time of the Minecraft world. |
worm |
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!
External programs can also be added (often via floppy disks), some of which may require access to the HTTP API.
Uses[]
There are too many uses to list, there are infinite possibilities. Here are some basic examples.
- Password Doors
- Alarm System
- Gaming
- Monitor System
- In Game Clock
- Time Schedules
- Disco floor (redstone controller)
- Billboards
It can be crafted into a Turtle (a mobile version of a Computer) which can be further upgraded to Mining Turtle or a Wireless Turtle.
There are plenty of ready made programs avaailable for you to download on the ComputerCraft Forums. These will then need to be copied onto a Floppy Disk to be used on a Computer.