Skip to content

Minecraft PLC (MPLC)

Minecraft 1.21.1 · NeoForge

Automate your base with one cable and a few lines of code.

MPLC adds a vanilla-styled controller block that reads your chests, tanks, batteries, redstone, and nearby blocks—then moves resources or triggers machines using short, readable scripts. No pipe spaghetti, and no programming background required to start.

furnace_fuel.star · Tier 1 PLC● Running · Every 20 t
In-game MPLC factory bay with Tier 2 and Tier 3 PLCs, Hub, Fabricator, Wireless Gateway, furnaces, and cables
SUPPLY = point("supply/item")
FUEL   = point("fuel/item")

def scan():
    need = 8 - FUEL.count("minecraft:coal")
    if need > 0:
        move(SUPPLY, FUEL, need, key="minecraft:coal")

What MPLC brings to your factory

One consistent set of blocks that fits alongside vanilla Minecraft and tech mods like Mekanism, AE2, and Compact Machines.

Items, Fluids, Energy & Redstone on one cable

Plug expansion cards into Interfaces along a single cable line. Tier 2 and 3 Interfaces reach all six sides of an attached machine from one face—no wrapping pipes around every furnace.

Reach into the world

World cards let a PLC inspect blocks, break clusters with Silk Touch or Fortune, right-click with tools or seeds, drop items into water for in-world crafting, and pump or place fluid sources.

Scale across rooms and dimensions

Coordinate multiple PLCs with a shared Hub, connect distant outposts across dimensions with Wireless Gateways and Nodes, or run a cable through a Compact Machine wall with a Compact Port.

Write scripts in-game or in your browser

Edit right on the PLC, or carry a PLC Programmer to save reusable libraries, launch the built-in Browser Editor with autocomplete and Dry Run previews, or connect an AI assistant via MCP.

Clear progression, vanilla art

Every block and item is drawn to sit naturally beside vanilla 1.21.1 textures. Craft Logic Boards by hand, press Advanced and Elite Boards in the Fabricator, and upgrade PLCs and Interfaces in place.

Built to stay server-friendly

Scripts run in short, bounded scans with step and I/O limits instead of runaway loops. Power your PLCs with Forge Energy (FE), test changes safely with Dry Run, and respect land claims automatically.

See what scripts actually look like

MPLC uses Starlark—a small, readable Python-like language. Most real factory jobs fit in 5 to 15 lines.

Furnace Array

One Tier 2 interface per furnace feeds ore into the top, fuel into the side, and pulls ingots from the bottom. Add another furnace named furnace_4 and the script picks it up automatically.

furnace_array.star● Running
ORE = point("ore_chest/item")
FUEL = point("fuel_chest/item")
OUT = point("output_chest/item")
FURNACES = points("furnace_*/item")

def scan():
    for f in FURNACES:
        move(ORE, f.up, 8, key="minecraft:raw_iron")
        if f.north.count("minecraft:coal") < 4:
            move(FUEL, f.north, 4, key="minecraft:coal")
        move(f.down, OUT)

Geode Harvester

A World Sensor with the Break ability scans a 3×3×3 box around a budding block, breaks only full clusters (leaving growing buds untouched), and a World Item Card moves the shards to storage.

geode_harvester.star● Running
S = point("geode/world")
SHARDS = point("geode/item")
STORE = point("store/item")

def scan():
    move(SHARDS, STORE)
    for x, y, z in S.find("#c:clusters", 6):
        S.dig(x, y, z)

Backup Generator

Reads FE from a battery, starts a backup generator via redstone when stored energy drops below 20%, and shuts it off once it reaches 90%—with a timer so it never flickers.

backup_generator.star● Running
load("mplc:timers", "off_delay")

BATTERY = point("battery/energy")
GEN = point("generator/redstone")
RUNNING = register("running", False)
HOLD = register("hold", [-1, False])

def scan():
    fe = BATTERY.count()
    if fe < 200_000:
        RUNNING.set(True)
    elif fe >= 900_000:
        RUNNING.set(False)
    active = off_delay(HOLD, RUNNING.get(), 100)
    GEN.set(15 if active else 0)

Pick your starting point

Jump straight into building, copy a tested setup, or look up a function.

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