-
Notifications
You must be signed in to change notification settings - Fork 2
Wireless Bridge
The Wireless Bridge allows you to bind multiple wired networks together across infinite distances, even spanning worlds.
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.
Shift-right-click one bridge and right-click the other. The two modems should now be bound. You can bind other modems by right-clicking them too.
Wrap the bridge as a peripheral. As well as providing conventional modem methods you can use .openRemote(<channel>)
to open a channel. All modems on with the same channel open will be bound to one another.
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 .openChannel
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 .openChannel
or the .bindFromCard
method as described above. The player's inventory will be searched until a data card is found.
If multipart support is enabled there is a multipart version of the wireless bridge available.
This functions identically to a normal wireless bridge.
network {
wirelessbridge {
# Wireless bridges will still function as before,
# though you will not be able to craft them.
B:crafting=true
B:enabled=true
B:pocketEnabled=true
I:pocketId=331 # Only change this if you have a conflict
B:turtleEnabled=true
I:turtleId=331 # Only change this if you have a conflict
}
}