Skip to content

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.

HubHub
Crafting Table
Copper Ingot
Redstone Comparator
Copper Ingot
Wooden Chest
Block of Iron
Wooden Chest
Copper Ingot
Redstone Dust
Copper Ingot
Hub
  1. Place a Hub anywhere on the same cable segment (or wireless-linked segment) as your PLCs.
  2. Right-click the Hub, give it a lowercase Hub name (such as main), and click Rename.
  3. Open the Members tab and click Join beside each PLC that should have access to this Hub.
  4. Define what the Hub shares:
    • Registers tab — add up to 32 shared registers (bool, int, float, or string) 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.

The Hub’s front indicator lights up whenever at least one joined PLC is loaded and running.

Select the Hub and its pre-declared registers or channels at the top level of each member PLC’s script:

supplier_plc.star
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:

sawmill_plc.star
MAIN = hub("main")
LOGS = MAIN.channel("logs")
SAWMILL = point("sawmill/item")
def scan():
move(LOGS, SAWMILL, 8, key="#minecraft:logs")
  • 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 True flag 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 src or dst in move(), or read it with count()/contents(), but channels have no side views and are never returned by points().

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.