commandblock.setCommand
|
|||
Set command. | |||
Code | <nowiki>
local commandblock = peripheral.find("command")
commandblock.setCommand("kill @a")
</nowiki>
|
Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lua |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CC:Tweaked |
|
commandblock.setCommand Function | |
---|---|
Syntax commandblock.setCommand(
| |
Returns | nil |
API | commandblock |
Source | CC:Tweaked (source) |
Set the command of 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.