Your First Automation
In this tutorial you will build a small circuit that keeps 8 coal in a furnace from a supply chest. Along the way you will place a PLC, connect Interfaces with Cables, name your hardware, test your script safely with Dry run, and start it running.
What you will need
Section titled “What you will need”- 1×
PLC (Tier 1) - 4–6×
Cable - 2×
Interface - 2×
Item Expansion - 1× Chest (with some coal inside), 1× Furnace, and a source of FE power (any mod generator or battery)
Show crafting recipes for these parts
Shapeless Crafting
Crafting Table
Crafting Table
Crafting Table
Crafting Table
Step 1: Place the blocks
Section titled “Step 1: Place the blocks”- Place a Chest and a Furnace a couple of blocks apart. Put a stack of coal into the Chest.
- Place the
PLC (Tier 1) nearby and connect your FE power source to any face of the PLC block. - Run
Cable from the PLC so one cable sits right next to the Chest and another sits right next to the side of the Furnace (remember: vanilla furnaces accept fuel from their sides).
Step 2: Install Interfaces and Item Expansions
Section titled “Step 2: Install Interfaces and Item Expansions”An Interface is the connector plate that sits on a cable face touching a block. An Expansion card inside that Interface decides what it can handle (items, fluids, energy, redstone, or world blocks).
- Hold an
Interface and right-click the cable face touching the Chest. - Hold an
Item Expansion and right-click that Interface (or open the Interface and place the card into its slot on the right). - Repeat on the cable face touching the side of the Furnace.
Because there is only one PLC on this cable line, both Interfaces automatically bind to it.

Step 3: Name both Interfaces
Section titled “Step 3: Name both Interfaces”Scripts refer to Interfaces by name, so give each one a short lowercase name:
- Right-click the Interface on the Chest.
- Change its Name field to
supplyand click Set. Notice the I/O points list now showssupply/item. - Right-click the Interface on the Furnace side, name it
fuel, and click Set. Its point isfuel/item.
Step 4: Write and upload the script
Section titled “Step 4: Write and upload the script”- Right-click the
PLC (Tier 1) to open its screen, then click Edit program. - Replace the starter template with this script:
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")Here is what each part does:
SUPPLY = point("supply/item")andFUEL = point("fuel/item")create handles for your two item interfaces.def scan():is the block of code the PLC runs on every check.FUEL.count("minecraft:coal")counts how much coal is currently in the furnace’s fuel slot.move(SUPPLY, FUEL, need, key="minecraft:coal")schedules moving just enough coal to top the furnace back up to 8.
- Click Dry run first. The Dry run dialog runs one trial scan without changing the world and shows you what it would do—for example:
Move 8 Coal from supply/item to fuel/item, plus the step, I/O, and FE estimates.

- Close the Dry run dialog and click Upload.
Step 5: Start the PLC
Section titled “Step 5: Start the PLC”- Click Done to return to the PLC screen.
- Click Run. The green lamp on the front of the PLC lights up.
- Open your Furnace: 8 coal appears in the fuel slot. Take a few out and watch the PLC refill it back to 8 on the next scan!

What next?
Section titled “What next?”- Learn the handful of scripting building blocks you will use in almost every build in the Scripting Crash Course.
- Ready to control top, side, and bottom of a furnace from a single cable? See Tiers, Upgrades & Power and the Expandable Furnace Array.
Not an official Minecraft website. Not approved by or associated with Mojang or Microsoft.