redstone event
Occurs when the redstone input on any side of the computer changes.
|
|||
| Prints every time the redstone input changes. | |||
| Code | <nowiki>
while true do
local event = os.pullEvent('redstone')
print("Redstone changed!")
end
</nowiki>
|
||
| redstone Event | |
|---|---|
Returns
| |
| Source | CC:Tweaked |
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.