Commands API
The Commands API is only available to Command Computers.
|
|||||||||
Execute a Command and wait until the command is finished. | |||||||||
Syntax | commands.exec(
|
||||||||
Returns | boolean sucess table output | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | commands | ||||||||
|
|
|||||||||
Execute a command but do not wait for it to run. | |||||||||
Syntax | commands.execAsync(
|
||||||||
Returns | number taskID | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | commands | ||||||||
|
Commands.getBlockInfo Commands.getBlockInfos
|
|||||||||||
Return the location of the running Command Computer. | |||||||||||
Syntax | commands.getBlockPosition() | ||||||||||
Returns | number x number y number z | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | commands | ||||||||||
|
Commands.list
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.