Advertisement
cromulator

cc repeating rednet pulse timer transmitter

Jul 25th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- this program will loop forever once triggered
  2.  
  3. while true do  -- this starts the infinite loop
  4.     redstone.setOutput("top", true) -- this sends a redstone signal out the bottom of the computer
  5.     sleep(1) -- this tells it to wait 1 second
  6.     redstone.setOutput("top", false) -- this tells it to stop the redstone output
  7.     sleep(5) -- this tells it to wait 5 seconds
  8.     rednet.open("left") -- activates the wireless modem
  9.     rednet.send(36, "asdf") -- where 36 is the particular computer id, and asdf is the message content
  10.     sleep(10)
  11. end -- not sure how this works but its necessary for it to loop successfully
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement