Multi-PLC Hubs
Every Interface belongs to one PLC, which keeps individual controllers predictable. When you want multiple PLCs to coordinate—for example, a master factory switch or a shared supply bus—connect them through a
Hub.
Crafting Table
Setting up a Hub
Section titled “Setting up a Hub”- Place a
Hub anywhere on the same cable segment (or wireless-linked segment) as your PLCs. - Right-click the Hub, give it a lowercase Hub name (such as
main), and click Rename. - Open the Members tab and click Join beside each PLC that should have access to this Hub.
- Define what the Hub shares:
- Registers tab — add up to 32 shared registers (
bool,int,float, orstring) with a name and default value. - Channels tab — add up to 8 shared channels (each has a name and a resource kind: Item, Fluid, or Energy). A channel acts like a shared Tier 3 buffer with no attached block.
- Registers tab — add up to 32 shared registers (
The Hub’s front indicator lights up whenever at least one joined PLC is loaded and running.
Using a Hub in scripts
Section titled “Using a Hub in scripts”Select the Hub and its pre-declared registers or channels at the top level of each member PLC’s script:
MAIN = hub("main")ENABLED = MAIN.register("enabled")LOGS = MAIN.channel("logs")STORE = point("store/item")
def scan(): if ENABLED.get(): move(STORE, LOGS, 8, key="#minecraft:logs")On another PLC joined to the same main Hub:
MAIN = hub("main")LOGS = MAIN.channel("logs")SAWMILL = point("sawmill/item")
def scan(): move(LOGS, SAWMILL, 8, key="#minecraft:logs")Important Hub rules
Section titled “Important Hub rules”- Declare in the Hub UI, select in code:
hub("main").register("enabled")looks up an existing register created in the Hub screen—it does not create a new one. - No cross-PLC interface snooping: Joining a Hub only shares that Hub’s registers and channels, never another PLC’s bound Interfaces.
- Last commit wins: PLCs scan one at a time. If two PLCs both write to the same Hub register in the same tick, the later scan overwrites the earlier one.
- Stopped PLCs leave values behind: If a controller PLC stops or faults, any Hub register it wrote stays at its last committed value. Do not treat a
Trueflag alone as proof that the writer PLC is still running. - Breaking a Hub keeps everything: Like PLCs, breaking a Hub preserves its name, members, registers, and channel buffers on the dropped item.
- Channels are points without sides: Use a channel as
srcordstinmove(), or read it withcount()/contents(), but channels have no side views and are never returned bypoints().
See Factory Master Switch & Bus for a complete multi-PLC build.
Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.