SHOW:
|
|
- or go back to the newest paste.
| 1 | - | while true do |
| 1 | + | -- this program will loop forever once triggered |
| 2 | - | redstone.setOutput("bottom", true)
|
| 2 | + | |
| 3 | - | sleep(5) |
| 3 | + | while true do -- this starts the infinite loop |
| 4 | - | redstone.setOutput("bottom", false)
|
| 4 | + | redstone.setOutput("bottom", true) -- this sends a redstone signal out the bottom of the computer
|
| 5 | - | end |
| 5 | + | sleep(1) -- this tells it to wait 1 second |
| 6 | redstone.setOutput("bottom", false) -- this tells it to stop the redstone output
| |
| 7 | sleep(5) -- this tells it to wait 5 seconds | |
| 8 | end -- not sure how this works but its necessary for it to loop successfully |