commandblock.runCommand
![]()
  | 
  |||
| Run command. | |||
| Code | <nowiki>
local commandblock = peripheral.find("command")
print(commandblock.runCommand())
    </nowiki>
 | 
    ||
| Output | true
 | 
    ||
Functions  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Lua | 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CC:Tweaked | 
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| commandblock.runCommand Function  | |
|---|---|
| 
Syntax commandblock.runCommand()  | |
| Returns | boolean success string error | 
| API | commandblock | 
| Source | CC:Tweaked (source) | 
Run a command from a commandblock.
    This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.