redstone.setOutput
From ComputerCraft
Jump to navigation
Jump to search
redstone.setOutput Function | |
---|---|
Syntax redstone.setOutput() | |
Returns | nil |
API | redstone |
Source | CC:Tweaked (source) |
When given a parameter with a valid side, this function will return a boolean value indicating whether the computer or turtle is receiving a redstone signal. Where true corresponds to a present signal and false corresponds to no present signal.
|
|||
redstone.setOutput sets the redstone output as a boolean, defining whether to send output on the specified side or not. | |||
Code | redstone.setOutput("top", true)
sleep(5)
redstone.setOutput("top", false)
|
||
Output | Redstone will be on on the top for 5 seconds, and then will be turned off. |