Shopkeepers Fabric
Every good survival server eventually hits the same problem: players want to trade with each other, but setting up a fair, safe marketplace is a nightmare. Chest shops get robbed, villagers wander off, and someone always finds a way to break the rules. Shopkeepers Fabric solves this by letting players run their own shops through the familiar villager trading screen, with server-grade protection baked in from the start.
This is an independent, unofficial mod inspired by the classic Shopkeepers Bukkit plugin. It shares no code with that project and is not endorsed by its authors, so keep bug reports in the right place. What it does offer is a clean, server-side implementation built specifically for Fabric.
How Player Shops Work
Each shop is tied to a stock chest or barrel placed next to it. When a customer buys something, the item comes out of the chest and the payment goes in. That simple loop covers everything from a small diamond stand to a sprawling spawn market.
- Mix selling, buying, and swapping in a single shop, with up to 45 trades by default.
- Trades the chest cannot fill show the vanilla red cross, and the list refreshes after every purchase.
- Shift-click the result to buy as many as you can afford in one go.
- Owners get a chat message whenever someone buys from them.
Admin shops work differently: unlimited stock, and they keep nothing they are paid. They are ideal for item sinks, quest rewards, and spawn markets. Create one with /shopkeeper admin [mob], or run it from the console and command blocks with /execute positioned 0 64 0 run shopkeeper admin.
Setting Up Your First Shop
Crafting and Placing
Craft a Shopkeeper by surrounding a chest with eight emeralds. Right-click your stock chest with it to link the container, right-click the air to pick a mob, then right-click a block to place the shop. The editor opens immediately, and it is a chest screen where each column represents one trade: what the customer receives on top, the price below, and an optional second price under that.
The editor only ever uses copies, so your real items never leave your inventory and nothing can be duplicated. Buttons handle pages, renaming with color codes, changing the mob, villager profession and biome look, and deleting the shop, which returns the Shopkeeper item to you. There are 25 mobs to choose from by default, including villagers, wandering traders, pillagers, witches, golems, foxes, cats, pandas, and llamas.
No Client Mod Required
Shopkeepers Fabric is 100 percent server-side. It goes in your server's mods/ folder and that is the entire setup. The trading screen is the vanilla villager screen, the editor is a vanilla chest screen, and the shopkeepers are ordinary mobs, so players join with unmodified clients and see everything correctly.
Version Support and Installation
The mod supports every Minecraft 1.21 release, from 1.21 through 1.21.11, on Fabric Loader 0.16.0 or newer with Fabric API and Java 21. One jar covers all of them: drop it into mods/ next to Fabric API and it selects the right build for your Minecraft version automatically. Updating the game does not mean hunting for a new file. Shops are stored per world in world/shopkeepers.dat, and trade items upgrade along with the rest of your world.
If you want to skip the manual file juggling entirely, the foxygame.net launcher handles the whole process, letting you add Shopkeepers Fabric straight from its add-on catalog and keeping it updated as new Minecraft releases land. Either way, the steps to install are short: stop the server, place the jar and Fabric API in the mods folder, confirm you are on a supported 1.21 build, and restart. If you are unsure where to download Shopkeepers Fabric safely, always use the project's official release page rather than third-party mirrors.
Built for Server Admins
Protection is where this mod earns its place on public servers. Shops cannot be killed, robbed, or hijacked.
- Shop mobs ignore all damage,
/kill @e, lightning, the void, and despawning, and snap back within a second if moved. - Only the owner can open or break a shop's stock chest, and explosions leave it standing.
- Hoppers cannot drain stock, and nobody can convert it into a double chest to gain access.
- You can only use a container you placed in the last 10 minutes as stock, which stops chest hijacking.
- Stock is rechecked at the exact moment an item is taken, so emptying a chest mid-trade cannot hand out free items.
- Shop mobs are rebuilt from shop data on chunk load, so a crash or stray command can never lose a shop.
- Removing the mod makes the shop mobs disappear cleanly, with no broken entities left behind.
LuckPerms support is thorough: every command and action has its own permission node, and per-group shop limits can be set as meta. Give VIPs a higher cap with /lp group vip meta set shopkeepers.max-shops 25, or restrict shop creation to a specific rank. Without a permissions mod, it falls back to vanilla op levels.
Commands and Configuration
Players get /shopkeeper list, edit, remove, transfer, and help, all of which respect permissions and show only what each player is allowed to use. Admins gain tools for listing anyone's shops, handing out Shopkeeper items, opening any shop remotely, teleporting to shops, and reloading the config. Sneak and right-click your own shop to reach the editor without typing anything.
The config file at config/shopkeepers.json is written with sensible defaults on first run and covers the shop limit, distance to the stock chest, trade pages, allowed mobs, notifications, and protection toggles. Edit it and run /shopkeeper reload; no restart needed, and missing keys fall back to defaults so your settings survive updates.
Final Thoughts
Shopkeepers Fabric fills a gap that most Fabric servers feel acutely: a trustworthy, player-driven economy without client mods or fragile workarounds. The vanilla trading interface keeps it approachable for newcomers, while the anti-grief systems, permissions integration, and crash-proof storage give admins peace of mind. Whether you run a small friends-only world or a busy public server, it is one of the easiest economy upgrades you can make.