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