Villager Tradings
Custom trading villagers with configurable multi-item recipes for Fabric and NeoForge.
Features
- Spawn persistent custom villagers with
/villager spawn <name> <outcome_item> <required_items...>. - Multi-input trades (3 inputs per row in UI), custom trade screen with themed background.
- Default settings for invulnerability and freeze; toggles via
/villager settings. - Persistent trade and villager data across dimensions.
Commands
/villager spawn <name> <outcome_item> <required_items...>— create a trader. Example:/villager spawn bookseller minecraft:enchanted_book:1 minecraft:paper:16 minecraft:emerald:2./villager delete <name>— remove a trader./villager find <name>— locate a trader and get a teleport suggestion./villager list [page]— list tracked traders./villager settings invulnerable <true|false> [villager]— set default or specific villager invulnerability./villager settings freeze <true|false> [villager]— set default or specific villager AI/freeze.
Permission: villager_tradings.command.villager (Fabric Permissions API v0/v1 if present), otherwise OP level 3.
Usage Tips
- Required items are space-separated
<item>:<count>tokens; use namespaces (e.g.,minecraft:emerald:3). - Trades consume all listed inputs; the in-game UI always reflects the full input list even if the merchant offer uses the first two slots.
- Custom villagers are tracked/persisted; when they die, their trades are cleaned up.
Building
./gradlew build
Artifacts for Fabric and NeoForge are produced under each subproject’s build/libs with the villager_tradings prefix.
How to Install Villager Trade (Mod)
Villager Trade by Pankraz01 is verified for Fabric, Neoforge across Minecraft versions 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6 (latest release: 0.13.3-stable, file size: 253 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6) and platform (Fabric, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Neoforge.
- Move the downloaded Villager Trade file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Added
/villager lookatme <name> [auto]to rotate a villager toward you or auto-face the nearest player; state is persisted. - Custom villager ambients now mute vanilla sounds and respect the per-villager sound flag; fixed sound event IDs to load bundled
.oggfiles. - Moved all
villager_tradingsconfigs underconfig/VillagerTradings/with legacy file migration. - Added auto-look tick handler and updated sound tick to use stored flags while silencing vanilla output.
- Version bumped through
0.13.3-stable.
- Added
/villager lookatme <name> [auto]to rotate a villager toward you or auto-face the nearest player; state is persisted. - Custom villager ambients now mute vanilla sounds and respect the per-villager sound flag; fixed sound event IDs to load bundled
.oggfiles. - Moved all
villager_tradingsconfigs underconfig/VillagerTradings/with legacy file migration. - Added auto-look tick handler and updated sound tick to use stored flags while silencing vanilla output.
- Version bumped through
0.13.3-stable.