commandblock.getCommand
|
|||
Get Command and print it. | |||
Code | <nowiki>
local commandblockr = peripheral.find("command")
print(commandblock.getCommand())
</nowiki>
|
||
Output | kill @a
|
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
commandblock.getCommand Function | |
---|---|
Syntax commandblock.getCommand() | |
Returns | string command |
API | commandblock |
Source | CC:Tweaked (source) |
Returns the 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.