CommandBlock.runCommand
From ComputerCraft Wiki
Revision as of 13:45, 9 April 2014 by MKlegoman357 (Talk | contribs) (Peripheral names in functions are now italic)
| Runs the command inside the Command Block previously set by manually editing it or by using commandBlock.setCommand() | |
| Syntax | commandBlock.runCommand() |
| Returns | nil |
| Part of | ComputerCraft |
| API | Command Block |
Examples
| Sets the command to toggledownfall and runs it (assuming the Command Block is on the left of the Computer). | |
| Code |
local commandBlock = peripheral.wrap("left") |