Skip to content

Wireless Network Bridge

The Wireless Network Bridge block
Wireless Network Bridge. Asset render of the block model, not an in-game screenshot.

A pair of bridges is a long cable without the cable. Devices at a distant outpost link to one bridge, and the other bridge links back home. Together they form one network.

Wireless Bridge

Shaped crafting table recipe. Progression: advanced automation. Ingredients: 6 × Iron Ingot, 1 × Amethyst Shard, 1 × Ender Pearl, 1 × Copper Ingot. It appears in the recipe book once you pick up one of its ingredients.

You need two, one for each end.

  1. Place a bridge near the computer and link it like a repeater, with the Linking Tool.
  2. Place the second bridge at the far site, up to 256 blocks away in the same dimension.
  3. Open the first bridge. It lists your own unpaired bridges that are loaded and in range, nearest first. Choose one and select Pair.
  4. Link the far devices to the far bridge.

The form shows the partner, the distance and whether it is connected. Unpair separates them, even when the partner is unloaded.

  • Each bridge has one partner, and you must own both, or be an operator.
  • Pairing never joins two different computers’ networks. An unattached bridge joins its partner’s network.
  • Both ends must be loaded for the connection to work. Bridges never load or keep chunks loaded.
  • A bridge relays like a repeater: it accepts up to 16 links.

A bridge cannot run a program.

bridges.named(alias)

Refer to a Wireless Network Bridge by its name. Use it in a constant, then handle its events with on NAME.event(...).

Parameters: alias: string. Gives: WirelessBridge. Cost: 4 operations.

const link = bridges.named("link")

bridges.from(alias)

Resolve a wireless network bridge by name.

Parameters: alias: string. Gives: WirelessBridge, or an error. Errors: device.type, device.unavailable, device.unknown, host.denied. Capability: devices.read. Cost: 16 operations.

link, err = bridges.from("north_link")

Properties: link.connected, link.id, link.kind, link.name. They are read-only.

link.status()

Describe the pairing: paired, peer (its name), connected and distance in blocks.

Gives: dict, or an error. Errors: device.type, device.unavailable, device.unknown, host.denied. Capability: devices.read. Cost: 16 operations.

info = link.status()
EventWhen it runs
connectedRuns when the device becomes reachable, for example after its area loads.
disconnectedRuns when the device stops being reachable: unloaded, unlinked or removed.
const link = bridges.named("link")
on link.connected {
status = link.status()
print("Bridge connected, partner " + str(status.distance) + " blocks away")
}

See the wireless remote installation tutorial.