CommandBlock.setCommand
From ComputerCraft Wiki
Revision as of 21:31, 31 March 2014 by MKlegoman357 (Talk | contribs) (Added commandBlock.setCommand)
| Sets the command in the Command Block. This does not run it. | |
| Syntax | commandBlock.setCommand(string command) |
| Returns | nil |
| Part of | ComputerCraft |
| API | Command Block |
Examples
| Sets the command in the Command Block on the left side of the computer to time set 0. | |
| Code |
local commandBlock = peripheral.wrap("left") |