Difference between revisions of "Computer"

From ComputerCraft Wiki
Jump to: navigation, search
m (Grammar: "able to use the Rednet")
Line 1: Line 1:
The Computer is the main block of ComputerCraft. This is the computer, which is the centerpiece of this mod. From this block you will be able to use the Rednet, make programs, turn on and off redstone (And bundled cables from RedPower!), play games and much more. The Computer runs an OS called [[CraftOS]].
+
[[File:Computer-in-game.png|frame|right|The Computer in-game]]
 +
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]].
  
 
[[Category:Blocks]]
 
[[Category:Blocks]]
Line 12: Line 13:
 
== Usage ==
 
== Usage ==
 
Place the Computer wherever you please, and just right click it to use.
 
Place the Computer wherever you please, and just right click it to use.
[[File:Computer-in-game.png|frame|right|The Computer in-game]]
 
  
 
== Keyboard Shortcuts ==
 
== Keyboard Shortcuts ==

Revision as of 16:21, 2 December 2012

The Computer in-game

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

stone

stone

stone

stone

Redstone

glass_pane

stone

stone

stone

Computer



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.