Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
block:switch [2020/03/06 21:42]
ocawesome101 [Relay] add note on wireless relays
block:switch [2020/03/06 21:50]
ocawesome101 [Relay]
Line 8: Line 8:
  
 Relays will not route packets back where they came from, but it is still possible to generate loops where packets will then arrive multiple times, so keep that in mind. Relays will not route packets back where they came from, but it is still possible to generate loops where packets will then arrive multiple times, so keep that in mind.
- 
-A wireless Relay can be created by right-clicking on a Relay, then inserting a wireless card into the resultant GUI. 
  
 The Relay block also serves as a ComputerCraft peripheral, providing an interface imitating that of ComputerCraft'​s (wired) modems. It will forward network messages sent from ComputerCraft to the OpenComputers side, which can be received if a [[item:​lan_card|network card]] is installed. It will also receive OpenComputers'​ network messages and push a corresponding signal in CC computers attached to the adapter. Note that network messages in OpenComputers do not require a "​response port" like ComputerCraft does. If the first argument for the network message is a number, it will be interpreted as the response port to tell ComputerCraft receivers, otherwise the response port will be set to `-1`.  ​ The Relay block also serves as a ComputerCraft peripheral, providing an interface imitating that of ComputerCraft'​s (wired) modems. It will forward network messages sent from ComputerCraft to the OpenComputers side, which can be received if a [[item:​lan_card|network card]] is installed. It will also receive OpenComputers'​ network messages and push a corresponding signal in CC computers attached to the adapter. Note that network messages in OpenComputers do not require a "​response port" like ComputerCraft does. If the first argument for the network message is a number, it will be interpreted as the response port to tell ComputerCraft receivers, otherwise the response port will be set to `-1`.  ​
Line 19: Line 17:
   * 1 x [[item:​network_card|Network Card]]   * 1 x [[item:​network_card|Network Card]]
   * 1 x [[item:​materials|Printed Circuit Board]]   * 1 x [[item:​materials|Printed Circuit Board]]
 +
 +A wireless or linked Relay can be created by replacing the Network Card with a corresponding one.
  
 {{:​recipes:​blocks:​switch.png?​nolink&​200|}} {{:​recipes:​blocks:​switch.png?​nolink&​200|}}