Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left") --enable the modem attached to the left side of the PC
- rednet.broadcast("WHOA! Double Rainbow!") --send "Hello world" over rednet to all PCs in range
- print("WHOA! Double Rainbow!")
- while true do
- event, id, message = os.pullEvent()
- if event == "rednet_message" then
- print( "Message from ID#"..id..": " )
- print( message )
- if message == "Taking a break." then
- print("Stopping harvest.")
- break
- end
- end
- print("Debug Loop")
- end
- print("disconnecting")
- rednet.close("left") --disable modem on the left side of the PC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement