Difference between revisions of "Command Computer"

From ComputerCraft Wiki
Jump to: navigation, search
m
m
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Block
 
{{Block
 
|name=Command Computer
 
|name=Command Computer
|image=Command_Computer.png
+
|image=Iso_Command_Computer.png
 
|id=ComputerCraft:command_computer
 
|id=ComputerCraft:command_computer
|damage-value=The ID of the Computer.
+
|damage-value=0
 
|is-peripheral=[[#Peripheral_Functions|Yes]]
 
|is-peripheral=[[#Peripheral_Functions|Yes]]
 
}}
 
}}
Introduced by ComputerCraft 1.7 (and therefore requiring MineCraft 1.7.10 or later), the Command Computer is a more powerful version of the [[Advanced Computer]], having direct access to [http://minecraft.gamepedia.com/Commands MineCraft commands]. They are therefore uncraftable, only available to op-status players via the creative inventory, and can only be directly interacted with by the same such players. For example, unlike other computers, they will not boot from an external [[Disk Drive]].
+
Introduced by ComputerCraft 1.7 (and therefore requiring Minecraft 1.7.10 or later), the Command Computer is a more powerful version of the [[Advanced Computer]], having direct access to [https://minecraft.gamepedia.com/Commands Minecraft operator commands]. They are therefore uncraftable, only available to OP-status players via the creative inventory, and can only be directly interacted with by the same such players. For example, unlike other computers, they will not boot from an external [[Disk Drive]].
  
Much of their functionality can be reproduced by [[peripheral.wrap|wrapping]] a [[Command_Block_(API)|command block]] for [[peripheral]] usage (an option introduced by ComputerCraft 1.48). However, Command Computers have the unique ability to [[commands.getBlockInfo|query block IDs and metadata]] from any area within their dimension, and can furthermore read boolean return values from commands without having to [[Redstone (API)|check redstone states]].
+
Although regular players cannot ''directly'' access these systems, it's quite possible for OPs to write scripts that allow others a controlled level of interaction via the touch-sensitive [[Advanced Monitor]] block, or via [[Rednet (API)|Rednet]], or via other [[peripheral]]s. For example, one may wish to write a script that displays the server TPS rate on an external monitor for other players to observe. Obviously, when doing so, one should take care not to inadvertently grant other players full access to the system's capabilities.
  
==Exclusive Functions==
+
==Exclusive APIs==
 
*[[Commands (API)]]
 
*[[Commands (API)]]
  
Line 18: Line 18:
  
 
== Peripheral Functions ==
 
== Peripheral Functions ==
'''''computer'' stands for the variable you wrapped the computer to.'''
+
Supports all the methods available to a [[Computer]] or [[Turtle]].
''Example:'' computer = peripheral.wrap( "top" )
+
*[[Computer (API)]]
  
{| class="wikitable"
+
== History ==
!style="background:#EEE" width="210px"|Method name
+
{{History|head}}
!style="background:#EEE" width="*"|Description
+
{{History|1.7|Added Command Computers.}}
|-
+
{{History|1.74|Can no longer be broken by survival players.}}
|[[computer.turnOn()]]
+
{{History|1.76|Added support for the new commands in Minecraft 1.8.}}
|Turns on the Computer or Turtle.
+
{{History|foot}}
|-
+
|[[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.
+
|}
+
  
 
{{BlocksItemsList}}
 
{{BlocksItemsList}}
[[Category:Blocks]][[Category:Consoles]]
+
 
 +
[[Category:Blocks]]
 +
[[Category:Consoles]]

Latest revision as of 07:06, 4 August 2020

Grid workbench.png   Command Computer
Iso Command Computer.png
Item ID ComputerCraft:command_computer
Damage Value 0
Peripheral? Yes

Introduced by ComputerCraft 1.7 (and therefore requiring Minecraft 1.7.10 or later), the Command Computer is a more powerful version of the Advanced Computer, having direct access to Minecraft operator commands. They are therefore uncraftable, only available to OP-status players via the creative inventory, and can only be directly interacted with by the same such players. For example, unlike other computers, they will not boot from an external Disk Drive.

Although regular players cannot directly access these systems, it's quite possible for OPs to write scripts that allow others a controlled level of interaction via the touch-sensitive Advanced Monitor block, or via Rednet, or via other peripherals. For example, one may wish to write a script that displays the server TPS rate on an external monitor for other players to observe. Obviously, when doing so, one should take care not to inadvertently grant other players full access to the system's capabilities.

Exclusive APIs

Exclusive Programs

Peripheral Functions

Supports all the methods available to a Computer or Turtle.

History

1.7Added Command Computers.
1.74Can no longer be broken by survival players.
1.76Added support for the new commands in Minecraft 1.8.
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