Back to mods
Villager Autotrade project artwork

Modrinth · Minecraft mod

Villager Autotrade

Villagers automatically execute their trades using items from chests or barrels placed above and below them. Shift + right-click any villager to enable trades and set priority. Perfect for fully automated trading farms

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Villager Autotrade release should I use?

Updated 12 days ago
Latest stable file 1.2.1+26.3
Game version 26.3
Loader Fabric

Villager Autotrade 1.2.1+26.3 targets 26.3 with Fabric. Installation on the client is optional. Installation on the dedicated server is optional. All 1 required mods have matching files.

Where it goes

Is Villager Autotrade required on the client, server, or both?

Installation on the client is optional. Installation on the dedicated server is optional.

Client Optional
Dedicated server Optional
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source marks this as usable on both the client and server.

What else does Villager Autotrade 1.2.1+26.3 need?

1.2.1+26.3. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Villager Autotrade 1.2.1+26.3
required
Matching file found Matched file: 0.166.2+26.3

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Villager Autotrade without breaking your instance.

Built for Villager Autotrade 1.2.1+26.3. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.2.1+26.3. It targets 26.3 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  3. 03

    Put it on the correct side

    Installation on the client is optional. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.2.1+26.3. It opens that exact file at the source.

About this project

What does Villager Autotrade add?

A Fabric mod that lets villagers automatically execute their trades using items from chests or barrels placed directly around them.

Set up an input chest above the villager and an output chest beneath, configure which trades you want active via a simple GUI, and let the villager handle the rest while it works at its workstation.

Features

  • Hands-free trading — villagers automatically execute their offers as long as they have buy items in the input chest and space in the output chest
  • Per-villager configuration — shift + right-click any villager to open the config screen
  • Priority ordering — drag trades up/down so high-value offers go first
  • Toggle individual trades — enable only the trades you want, ignore the rest
  • Natural restock — uses Minecraft's built-in trade limits (each offer caps at its MaxUses, then restocks when the villager visits its workstation)
  • Works during villager work hours — trades only fire while the villager is on duty (in-game day, ticks 2000–9000), respecting vanilla AI

Installation

Requirements:

  • Minecraft 26.3, 26.2 or 1.21.11 — pick the file for your version on the Versions tab. New Minecraft releases are built and tested automatically as soon as Fabric API supports them.
  • Fabric Loader and Fabric API for that version
  • Java 25 for Minecraft 26.x (the official launcher brings it), Java 21 for 1.21.11

Drop villager-auto-trade-<version>.jar into your mods/ folder alongside Fabric API. Works on both client and dedicated server — for multiplayer, every player needs the mod installed (the configuration GUI is client-side).

How to use

Setup per villager

[Chest or Barrel]   ← directly above the villager (input)
[Villager]          ← standing on the output chest
[Chest or Barrel]   ← directly below the villager (output)

The villager itself stands on top of the output chest. Place an input chest one block above the villager's head. Use a fence cell or similar to keep the villager from wandering off.

Configure trades

  1. Fill the input chest with the items the villager wants to buy (e.g. emeralds, paper, coal)
  2. Shift + right-click the villager to open the config screen
  3. Tick the trades you want auto-executed
  4. Use the ↑ / ↓ arrows to set priority (top of the list runs first)
  5. Click Save

Watch it run

During work hours, the villager will execute one trade per second per enabled offer, as long as items and output space are available. Once an offer reaches its max uses (red MAXED badge), the mod skips it and moves on. The villager restocks automatically by working at its workstation.

Restocking needs the workstation within reach: vanilla only restocks a villager that stands within about 1.7 blocks of its claimed workstation. Put the workstation right next to the villager's cell, or its offers stay MAXED.

If a villager does nothing, check the server log: the mod writes one line per villager when something is missing (no trades, no chest above or below), and one line when it is solved.

Config screen

The screen is opened with shift + right-click on a villager. It shows:

  • Auto Trade Enabled — global on/off toggle for that villager
  • List of trades — checkbox to enable, ↑↓ buttons for priority, MAXED indicator for offers that are out of stock
  • Save / Cancel — save writes to the villager's NBT data, persisting across restarts

Compatibility

  • Works with all villager professions (librarian, farmer, weaponsmith, etc.) and any workstation type
  • Compatible with chests, trapped chests, barrels, and any block entity that implements Inventory
  • No conflicts known with common QoL mods

License

MIT — feel free to use, modify, or redistribute.

Credits

Made by Dziko3000.

Project description from Modrinth.

Pick your setup

Villager Autotrade by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

3 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Villager Autotrade versions and loaders

3 of 3 releases match

Looking for an older file? The official Modrinth project page is in Resources.