Skip to content

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.

  • 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
Logic BoardLogic Board×2
Shapeless Crafting
Copper Ingot
Redstone Dust
Redstone Dust
Iron Ingot
Logic Board2
PLC (Tier 1)PLC (Tier 1)
Crafting Table
Copper Ingot
Logic Board
Copper Ingot
Redstone Repeater
Block of Iron
Redstone Repeater
Copper Ingot
Logic Board
Copper Ingot
PLC (Tier 1)
CableCable×8
Crafting Table
Copper Ingot
Redstone Dust
Copper Ingot
Cable8
InterfaceInterface
Crafting Table
Iron Ingot
Logic Board
Iron Ingot
Interface
Item ExpansionItem Expansion
Crafting Table
Redstone Dust
Iron Ingot
Hopper
Item Expansion
  1. Place a Chest and a Furnace a couple of blocks apart. Put a stack of coal into the Chest.
  2. Place the PLC (Tier 1) nearby and connect your FE power source to any face of the PLC block.
  3. 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).

  1. Hold an Interface and right-click the cable face touching the Chest.
  2. Hold an Item Expansion and right-click that Interface (or open the Interface and place the card into its slot on the right).
  3. 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.

Tier 1 PLC connected by Cable and two Tier 1 Interfaces between a Chest on the left and a Furnace on the right
Finished layout: Supply Chest on the left, Tier 1 PLC powered from behind in the center, and Furnace on the right.

Scripts refer to Interfaces by name, so give each one a short lowercase name:

  1. Right-click the Interface on the Chest.
  2. Change its Name field to supply and click Set. Notice the I/O points list now shows supply/item.
  3. Right-click the Interface on the Furnace side, name it fuel, and click Set. Its point is fuel/item.
  1. Right-click the PLC (Tier 1) to open its screen, then click Edit program.
  2. Replace the starter template with this script:
furnace_fuel.star
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") and FUEL = 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.
  1. 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.
MPLC Dry Run dialog showing Completed, Move 8 Coal from supply/item to fuel/item, and step/I/O/FE budgets
Dry Run previews planned moves and budget usage before your script touches any chest.
  1. Close the Dry run dialog and click Upload.
  1. Click Done to return to the PLC screen.
  2. Click Run. The green lamp on the front of the PLC lights up.
  3. 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!
Tier 1 PLC screen showing Mode: Running, Stored FE, Last scan FE, and Average FE/t
Once running, the PLC screen shows stored FE, last scan cost, average FE/t, and any faults.

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