-
Notifications
You must be signed in to change notification settings - Fork 2
Wireless Bridge
The Wireless Bridge allows you to bind wired networks together across infinite distances, even spanning dimensions.
Wireless bridges can be placed next to a computer or attached directly to a network cable. You do not need a modem to attach to them.
There are two ways to bind two wireless bridges together:
The data card can be used to transfer data between wireless bridges. You can shift+right-click on one modem to Load settings onto the card, and right-click on all subsequent bridges to bind the bridges together.
As well as providing conventional modem methods, the wireless bridge provides additional methods to allow binding them together.
.openRemote(channel:number)
will connect to that channel, and bind all bridges on that channel together.
You can only have one channel open at a time. If you need to close a channel you can use .closeRemote()
. You can check
if you have a channel open with getOpenRemote()
.
local bridge = peripheral.wrap("left")
local open = bridge.getOpenRemote()
if open then
print("Open on " .. open)
else
print("Opening on 0")
bridge.openRemote(0)
end
Wireless bridges can be used as turtle upgrades. You can bind turtles using the .openRemote
method as above or using
data cards through specific methods.
The turtle upgrade provides 4 methods to bind to and from cards:
-
bindFromCard
: Load a binding from the data card in the selected slot -
bindToCard
: Save a binding to the data card in the selected slot -
bindFromBlock
: Load a binding from a wireless bridge in world. You can specify a direction too ("forward", "up", "down"). -
bindToBlock
: Save a binding to a wireless bridge in world. You can specify a direction as above.
You can upgrade a pocket computer with a wireless bridge. You can bind pocket computers using .openRemote
or the
.bindFromCard
method as described above. The player's inventory will be searched until a data card is found.
There is also a multipart version of the wireless bridge. You can convert to and from this version by placing a bridge on its own in the crafting table.
This functions identically to a normal wireless bridge. You can disable this multipart by setting
Integration.mcMultipart
to false. Note, this will also disable the Wired modem multipart.
All configuration options exist within the Network.WirelessBridge
category.
-
enabled=true
: Whether the wireless bridge is enabled. This does not remove the block from the game, but does prevent it from functioning. -
crafting=true
: Whether the wireless bridge can be crafted. -
pocketEnabled=true
: Whether the pocket upgrade is enabled. Again, you will be able to craft pocket computer with a bridge but it will function. -
turtleEnabled=true
: Whether the turtle upgrade is enabled. Again, you will be able to equip it but it won't do anything.
There also exist options to configure the IDs of the pocket and turtle upgrades, though those only exist for legacy reasons and will be removed in the future.