Difference between revisions of "Computer"

From ComputerCraft Wiki
Jump to: navigation, search
m (Reverted edits by 69.112.184.236 (talk) to last revision by AfterLifeLochie)
(Merged Peripheral table for Consoles into here.)
Line 32: Line 32:
 
|}
 
|}
 
NOTE: You have to hold the keyboard shortcuts down for at least 1 second!
 
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" )
 +
 +
{| class="wikitable"
 +
!style="background:#EEE" width="210px"|Method name
 +
!style="background:#EEE" width="*"|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.
 +
|}

Revision as of 23:54, 28 November 2012

The console 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 console runs an OS called CraftOS.

Recipe

stone

stone

stone

stone

glass_pane

stone

stone

stone



Usage

Place the console wherever you please, and just right click it to use.

The Computer in-game

Keyboard Shortcuts

Shortcut Usage
CTRL + T Terminates the current program.
CTRL + R Reboots the console.
CTRL + S Forcefully shuts down the computer.
CTRL + Q Plays a secret.

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.