Custom Villager Trades (Fabric)
About Custom Villager Trades

This modification provides Minecraft modpack creators with the ability to significantly expand the standard villager trading system. It includes numerous modern features allowing fine-tuning of available exchange items, as well as adding randomization capabilities for items, their quantities, enchantments, and other parameters.
How It Works
The mod operates by reading JSON configuration files from the config/custom villager trades directory. During the first launch of the modification, this folder is automatically created with a sample configuration file inside. You'll need to create the remaining files yourself - it's recommended to use one file per profession.
After loading and verifying the trading settings, the mod intercepts the standard trade loading event and adds custom exchange options (when the corresponding option is enabled, original trades can also be removed).
Key Features
- Fully customizable trade creation system through JSON configurations
- Trade modification for any profession (except nitwit) via simple named configuration files
- Setting up "global" trades applied to all traders ("all.json" file)
- Trade application based on villager level
- Complete control over all trade aspects (experience, discounts, and other parameters)
- Ability to apply enchantments to any trade items
- Three different methods of enchantment randomization
- Enchantment blacklist for random selection system
- Support for items and blocks from other modifications
- Compatibility with professions from other mods
- Complete removal of standard trades (available for each profession separately)
- Modification and replacement of wandering trader commerce
- Customizable potion trading with random selection and blacklist support
- Custom suspicious stew trades
- Custom treasure map trading (with support for structures from mods)
- Custom tipped arrow trades (with support for potion effects from mods)
- Ability to set colors for custom potions and tipped arrows
- Support for custom NBT data (basic and advanced)
- Experimental commands for in-game trade management:
- /reloadCVT - configuration reload
- /exportCVT - available trades export
- /addCVT - adding new trades
- /removeCVT - trade removal
- Customizable number of trades per level
Important Information
Warning: some features may be unavailable if you're using an outdated version of the modification.
Before seeking help, it's recommended to review the documentation.
This modification can be freely used in Minecraft modpacks.