Advertisement
blaize9

QuarryStatus-Sender

Aug 28th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local computerid = 6 -- Set this to your computer ID
  2.  
  3. rednet.open("top") -- it will use the wireless modem located on the top
  4. --(you can also use left , right , top , down , front, back)
  5. print("Computer ID: "..os.getComputerID())
  6.  
  7. while true do
  8. os.pullEvent("redstone") -- when the redstone signal changes run this
  9. if rs.getInput("right") then -- When there is a signal tell the computer its not running
  10. rednet.send(computerid,"NORUNNING")
  11. print("NOT RUNNING sent to ID "..computerid)
  12. else -- If there is no signal then say its running
  13. rednet.send(computerid,"RUNNING")
  14. print("RUNNING sent to ID "..computerid)
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement