Difference between revisions of "Computer"

From ComputerCraft Wiki
Jump to: navigation, search
(Peripheral Functions)
m (Implement {{BlocksItemsList}})
Line 57: Line 57:
 
|Gets the ID of the Computer or Turtle.
 
|Gets the ID of the Computer or Turtle.
 
|}
 
|}
 +
 +
 +
{{BlocksItemsList}}

Revision as of 19:22, 24 May 2013

Grid workbench.png   Computer
Iso Computer.png
Item ID 4095
Damage Value The ID of the Computer.
Peripheral? Yes

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

A 2x2 Monitor, connected to a Computer, with a Disk Drive connected.

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.


Grid Redstone.pngComputerCraft Blocks and Items
Grid paper.png  Blocks
 Iso Computer.png  Computer Iso Advanced Computer.png  Advanced Computer Iso Command Computer.png  Command Computer Iso DiskDrive.png  Disk Drive
 Iso Monitor.png  Monitor Iso Advanced Monitor.png  Advanced Monitor Iso Printer.png  Printer Grid turtle.png  Turtle
 Grid Modem.png  Wireless Modem Grid Ender Modem.png  Ender Modem Grid Wired Modem.png  Wired Modem Grid Networking Cable.png  Networking Cable
Grid paper.png  Items
 Grid Pocket Computer.png  Pocket Computer Grid Advanced Pocket Computer.png  Advanced Pocket Computer Grid disk.png  Floppy Disk Grid printed page.png  Printed Page
 Grid printed pages.png  Printed Pages Grid printed book .png  Printed Book