Advertisement
cromulator

cctimer2

Jul 24th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- this program will loop forever once triggered
  2. -- cctimer 2! new and improved
  3. while true do -- this starts the infinite loop
  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("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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement