Difference between revisions of "Computer"
From ComputerCraft Wiki
m (Ported to Template:Block) |
Digipenguin (Talk | contribs) (→Peripheral Functions) |
||
Line 45: | Line 45: | ||
!style="background:#EEE" width="*"|Description | !style="background:#EEE" width="*"|Description | ||
|- | |- | ||
− | |computer.turnOn() | + | |[[computer.turnOn()]] |
|Turns on the Computer or Turtle. | |Turns on the Computer or Turtle. | ||
|- | |- | ||
− | |computer.shutdown() | + | |[[computer.shutdown()]] |
|Shuts off the Computer or Turtle. | |Shuts off the Computer or Turtle. | ||
|- | |- | ||
− | |computer.reboot() | + | |[[computer.reboot()]] |
|Reboots the Computer or Turtle. | |Reboots the Computer or Turtle. | ||
|- | |- | ||
− | |computer.getID() | + | |[[computer.getID()]] |
|Gets the ID of the Computer or Turtle. | |Gets the ID of the Computer or Turtle. | ||
|} | |} |
Revision as of 13:53, 11 February 2013
The Computer (pictured) is the main block of ComputerCraft. From the Computer, you will be able to make programs, turn on and off Redstone, use Rednet and interface with bundled cables from RedPower, play games, and much more. The Computer runs an OS called CraftOS.
Recipe
Usage
Place the Computer wherever you please, and just right click it to use.
Keyboard Shortcuts
Shortcut | Usage |
---|---|
CTRL + T |
Terminates 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!
Peripheral Functions
computer stands for the variable you wrapped the computer to. Example: computer = peripheral.wrap( "top" )
Method name | Description |
---|---|
computer.turnOn() | Turns on the Computer or Turtle. |
computer.shutdown() | Shuts off the Computer or Turtle. |
computer.reboot() | Reboots the Computer or Turtle. |
computer.getID() | Gets the ID of the Computer or Turtle. |