VillagerBarter [1.14 - 1.21.x]
0.3.1Trade with Villagers by dropping items at their feet and they'll drop their corresponding trade back
VillagerBarter
VillagerBarter is a Bukkit plugin that enables villagers to automatically barter with nearby dropped items based on their trading recipes. This plugin simulates the experience of bartering like how you do with Piglins.
Features
- Villagers automatically check for nearby dropped items every 5 seconds.
- If a valid trade can be made using dropped items, the villager:
- Plays pickup and trade sounds.
- Faces the nearest player (if any).
- Drops the trade result item naturally.
- Increments the recipe usage count.
- Trades are limited to villagers of certain professions and levels (1–5).
- Supports multi-ingredient trades (up to 2 items).
Version Support
VillagerBarter is designed for Minecraft 1.21.x and has been tested against Spigot and Paper for this version series. While it may work on earlier or later versions, compatibility is not guaranteed. For best results, use with Minecraft 1.21.4 or later within the 1.21 series.
Supported Professions
The following professions are allowed to perform barters:
- Armorer
- Butcher
- Cartographer
- Cleric
- Farmer
- Fisherman
- Fletcher
- Leatherworker
- Librarian
- Mason
- Shepherd
- Toolsmith
- Weaponsmith
Configuration
The plugin generates a configuration file on first run. You can control behavior per-world and per-profession. Below is an example configuration:
worlds:
world:
armorer:
enabled: true
search_radius: 3
delay_ticks: 60
min_level: 1
max_level: 5
How It Works
- Every 5 seconds, the plugin scans all villagers in loaded worlds.
- If a villager is within the allowed professions and level range, it scans for nearby dropped items.
- If the dropped items match a valid recipe:
- Items are consumed.
- The villager simulates pickup behavior.
- The trade is performed and the result is dropped.
- The villager may face the nearest player.
- Recipes are updated to reflect usage.
Notes
- Items set for trading are made unpickable to avoid interference.
- Trades with maxed-out usage will be skipped.
- Villagers do not level up automatically, that is currently a bug and will be fixed in the next release
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta