Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local computerid = 6 -- Set this to your computer ID
- rednet.open("top") -- it will use the wireless modem located on the top
- --(you can also use left , right , top , down , front, back)
- print("Computer ID: "..os.getComputerID())
- while true do
- os.pullEvent("redstone") -- when the redstone signal changes run this
- if rs.getInput("right") then -- When there is a signal tell the computer its not running
- rednet.send(computerid,"NORUNNING")
- print("NOT RUNNING sent to ID "..computerid)
- else -- If there is no signal then say its running
- rednet.send(computerid,"RUNNING")
- print("RUNNING sent to ID "..computerid)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement