Skip to content

Factory Master Switch & Bus

HardwareMin Tier 1Hub (Shared Register + Channel)Multiple PLCsReusable Library (load)Redstone Master Lever
Parts2× PLC (Tier 1, Master + Workshop)1× Hub1× PLC Programmer3× Interface2× Item Expansion1× Redstone ExpansionCable

Split a growing base into dedicated PLCs—one Master PLC in your control room (with a physical master switch lever and bulk fuel supply) and any number of Workshop PLCs in separate rooms—connected through a single Hub. Flip the master lever off and every workshop PLC pauses cleanly; share common stocking helpers through a Programmer Library module so you write the logic once.

Central MPLC Hub flanked by a Master PLC with lever and chest on the left and a Workshop PLC with chest on the right, both running with green status lamps
Central Hub coordinating the Master PLC (left, with lever and bulk fuel) and Workshop PLC (right) over one cable.
  1. Connect your Master PLC, Workshop PLC(s), and one Hub onto the same cable segment (or linked via Wireless Gateway/Node).
  2. Right-click the Hub:
    • Rename it to main.
    • On the Members tab, click Join for both PLCs.
    • On the Registers tab, add a bool register named enabled with default false.
    • On the Channels tab, add an Item channel named fuel_bus.
  3. On the Master PLC, bind:
    • master_lever (Redstone Expansion, Direction = Input) next to your control-room lever
    • bulk_coal (Item Expansion) on your central fuel storage
  4. On the Workshop PLC, bind:
    • local_bin (Item Expansion) on the workshop’s fuel buffer chest

Open your PLC Programmer (or Browser Editor), create a library entry named bus_lib, and save this helper:

bus_lib (Programmer Library)
FUEL_TAG = "#minecraft:coals"
def top_up(src, dst, target, key=FUEL_TAG):
need = target - dst.count(key)
if need > 0:
move(src, dst, need, key=key)

Upload through your PLC Programmer so bus_lib gets bundled into the PLC:

master_plc.star
load("bus_lib", "top_up")
MAIN = hub("main")
ON = MAIN.register("enabled")
BUS = MAIN.channel("fuel_bus")
LEVER = point("master_lever/redstone")
BULK = point("bulk_coal/item")
def scan():
enabled = LEVER.get() > 0
ON.set(enabled)
# Keep 64 coal buffered in the shared Hub channel while factory is enabled
if enabled:
top_up(BULK, BUS, 64)
workshop_plc.star
load("bus_lib", "top_up")
MAIN = hub("main")
ON = MAIN.register("enabled")
BUS = MAIN.channel("fuel_bus")
BIN = point("local_bin/item")
def scan():
if not ON.get():
return
# Pull from the shared Hub channel whenever local fuel drops below 32
top_up(BUS, BIN, 32)
  • Each PLC still owns only its own Interfaces—no naming collisions between rooms.
  • MAIN.channel("fuel_bus") acts like a shared Tier 3 buffer right on the Hub: the Master PLC refills it from bulk storage, and any number of Workshop PLCs draw from it on demand.
  • Because bus_lib cannot declare registers, the Hub register lives cleanly in each PLC’s top level while top_up() stays reusable everywhere.
  • Add a heartbeat for safety: Remember that if the Master PLC stops or loses power, enabled stays at its last value. Add an int Hub register master_tick that the Master PLC updates to now() each scan, and have workshops require now() - TICK.get() < 100.
  • Add fluid or energy channels: A single Hub holds up to 8 channels across Items, Fluids, and Energy—add a power_bus Energy channel or steam_bus Fluid channel alongside fuel_bus.

Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.