Villager Api Wiki › Guides › Make Villagers Trade Different Items by Biome
Make Villagers Trade Different Items by Biome
Biome-Specific Trade Variants
The mod allows the same profession to have different trade lists depending on which biome the villager spawns in. This creates regional merchant variety without needing separate professions.
Setting Up Biome Trades
In your trade configuration file, create separate trade sections for different biomes. For example:
- A desert merchant might sell sand-related items and cacti
- A forest merchant might trade wood, mushrooms, and forest plants
- A mountain merchant might specialize in stone and ore-related goods
Implementation
When you define trades, tag them with biome conditions. The mod checks where the villager spawned and applies the correct trade list automatically. You don't need to manually assign villagers to biomes—the system handles it.
This means one "Trader" profession can feel completely different across your world. Test by spawning villagers in different biomes and checking their available trades.