作者:rebot | 分类:模组
Minecraft 版本: 1.21.1
平台: neoforge
标签: management technology
This mod connects Create Redstone Link networks with CC:Tweaked computers.
It adds a single block, the CC Redstone Link Bridge, which can be placed in the world and then used as a ComputerCraft peripheral.
This mod requires Create and CC:Tweaked.
The bridge acts as a small adapter between two systems:
With the bridge block in the world, a connected computer can:
The mod is intentionally minimal. The Lua interface only exposes the two operations that are required for direct network interaction.
When the peripheral is used from Lua:
getLinkSignal(freq1, freq2) looks up the current strength for that frequency pair.sendLinkSignal(freq1, freq2, strength) sets the target frequency pair and transmits the chosen strength.The frequency values are item IDs written as strings.
For example, minecraft:iron_ingot and minecraft:oak_sapling form one valid pair.

The recipe is a 3x3 shaped craft with Redstone Links in all four corners, a Wireless Modem in the center, and Cobblestone in the bottom-middle slot. The three remaining middle-edge slots (top-middle, middle-left, and middle-right) are filled with Create transmitters.
Peripheral type:
redstone_link_bridgeMethods:
getLinkSignal(freq1, freq2) -> numbersendLinkSignal(freq1, freq2, strength)freq1 and freq2 must be item IDs as strings.
Examples:
"minecraft:iron_ingot""minecraft:oak_sapling""minecraft:redstone"Use an empty string ("") if you want to represent an empty frequency value.
local bridge = peripheral.find("redstone_link_bridge")
assert(bridge, "No redstone_link_bridge found")
-- Read an existing frequency pair
local current = bridge.getLinkSignal("minecraft:diamond", "minecraft:redstone")
print("Current signal:", current)
-- Send a signal to a frequency pair
bridge.sendLinkSignal("minecraft:diamond", "minecraft:redstone", 7)请登录后举报
暂无评论,抢个沙发吧~