commandblock.runCommand

From ComputerCraft
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽

commandblock.runCommand
Function
Syntax
commandblock.runCommand()
Returns boolean success string error
API commandblock
Source CC:Tweaked (source)

Run a command from a commandblock.

Note Note: The commandblock peripheral is disabled by default. You have to enable it in the config before using it.

ExampleExampleRun command
Run command.
Code
local commandblock = peripheral.find("command")
print(commandblock.runCommand())
Output
true