SimpleJsonVillagerTrades
⚪ Last updated 2023⚠️ Install Order · 2 steps
Install in this order, then this mod last — most mods fail to load without their framework and dependencies in place.
Preview

🔍 Analysis
- 👍 0.4% endorsement rate
- 🏆 #551 of 896 fabric mods in this game by downloads
📋 About This Mod
# Simple JSON Villager Trades As simple as it sounds, a small jij-able/standalone library to modify/add merchant trades via datapacks. ## For Datapackers You are able to modify merchant trades through JSON files the `data/<namespace>/trade_offers/` directory. For example: ```json { "__COMMENT": "This adds a ruined portal map to the Cartographer's trades.", "profession": "minecraft:cartographer", "replace": false, "offers": { "apprentice": } } ``` For more tutorials and more information on modifying merchant trades, see (https://github.com/aws404/SimpleJsonVillagerTrades/wiki). ## Compatibility SJVT uses Minecraft's hardcoded trade map as a base for the datapacks to build on top of, so it should work with most mods, even those who add new villager professions. You can also export the hardcoded map (including non-native support mods) as a datapack by running the `sjvt:build` command. ## For Mod Developers You can include the mod using the following repository and dependency in your `build.gradle` (where `` is the latest version): ```gradle repositories { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" content { includeGroup "maven.modrinth" } } } dependencies { modImplementation include("maven.modrinth:sjvt:") //To include (jij) in your mod modImplementation "maven.modrinth:sjvt:" // To require the mod to be installed seperatly } ``` ### Custom Trade Offer Factories To create a trade offer factory, implement the `SerializableTradeOfferFactory` interface. Then register the codec to the `TradeOfferFactories.TRADE_OFFER_FACTORY_REGISTRY` registry. You can also use methods and fields in the `CodecHelper` class to assist in the creation of codecs. Then see 'For Datapackers'
# Simple JSON Villager Trades As simple as it sounds, a small jij-able/standalone library to modify/add merchant trades via datapacks.
## For Datapackers
You are able to modify merchant trades through JSON files the `data/
"profession": "minecraft:cartographer", "replace": false, "offers": { "apprentice": [ { "type": "minecraft:sell_map", "price": 5, "name_key": "filled_map.ruined_portal", "feature_tag": "minecraft:ruined_portal", "icon": "target_x", "max_uses": 10, "experience": 2 } ] } } ``` For more tutorials and more information on modifying merchant trades, see (https://github.com/aws404/SimpleJsonVillagerTrades/wiki).
## Compatibility SJVT uses Minecraft's hardcoded trade map as a base for the datapacks to build on top of, so it should work with most mods, even those who add new villager professions. You can also export the hardcoded map (including non-native support mods) as a datapack by running the `sjvt:build` command.
## For Mod Developers You can include the mod using the following repository and dependency in your `build.gradle` (where `` is the latest version): ```gradle repositories { maven { name = "Modrinth" url = "https://api.modrinth.com/maven" content { includeGroup "maven.modrinth" } } }
dependencies { modImplementation include("maven.modrinth:sjvt:") //To include (jij) in your mod modImplementation "maven.modrinth:sjvt:" // To require the mod to be installed seperatly } ```
### Custom Trade Offer Factories To create a trade offer factory, implement the `SerializableTradeOfferFactory` interface. Then register the codec to the `TradeOfferFactories. TRADE_OFFER_FACTORY_REGISTRY` registry. You can also use methods and fields in the `CodecHelper` class to assist in the creation of codecs.
Then see 'For Datapackers'
📊 Mod Details
- Game
- Minecraft Mods
- Author
- aws404
- Version
- 1.3.0-pre1+1.20-pre1
- Downloads
- 3,275
- Endorsements
- 14
- Category
- fabric
- Created
- 2/7/2022
- Updated
- 5/14/2023
- Game Versions
- 1.20-pre1
- Tags
- library, management, utility
🔧 How to Install Minecraft Mods Mods
Download from Modrinth. Use Prism Launcher or drop into your mods folder.
📖 Full step-by-step install guide for Minecraft Mods →
Visit the official mod page for specific installation instructions for this mod.
🎮 Need cheat codes or console commands? Check ur gaming wiki for Minecraft Mods commands, item IDs, and more.
❓ Frequently Asked Questions
Which Minecraft Mods versions does SimpleJsonVillagerTrades support?
The author lists 1.20-pre1. Other versions may work but are untested by the author.
What is the latest version of SimpleJsonVillagerTrades?
Version 1.3.0-pre1+1.20-pre1, published 2023-05-14 with 3,275 downloads recorded at the source.
Keep browsing — more Minecraft Mods mods await