Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Rednet (API) - Computer Craft
The Rednet API provides a simple computer networking model over RedPower Bundled Cables or the Wireless Modem of ComputerCraft 1.3+. With the table below, 'side' refers to a string that represents a side of the computer ("front", "back", "left", "right", "bottom", "top"). All message sent with rednet are and must be strings.
|Method name||Description||Return type|
|rednet.open(side)||Tells the computer that the side can be used for networking.||nil|
|rednet.close(side)||Tells the computer that the side can no longer be used for networking.||nil|
|rednet.announce()||Broadcasts an empty rednet message.||nil|
|rednet.send(receiverID, message)||Sends a message to the computer using the opened sides. The receiver ID is the ID (number, not string) of the computer you're sending the message to.||success|
|rednet.broadcast(message)||Sends the message to ALL connected and open computers.||success|
|rednet.receive(timeout)||Waits until it received a rednet message or timeout has passed. Leave args empty to wait for a message forever.||
senderId, message, distance
|rednet_message||Fired when a rednet message is received (can be used as alternative for rednet.receive()||senderId, message, distance|