Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft
Villager API Mod Wiki

Villager API Mod Wiki & Guide

wiki.9minecraft.net/villager-api-mod/

Provides an API framework for modifying and extending villager behavior and trades.

Guides

Step-by-step, in-game.

Frequently asked questions

Where do I put my custom villager files?
Create a folder called `villagers` in your world's `datapacks` directory, then organize your JSON files inside it by profession name. The mod will automatically scan this folder when the world loads.
Can I use the same profession in multiple biomes with different trades?
Yes—set up one profession file, then use the biome-specific trade system to assign different trade lists to the same job depending on where the villager spawns. This lets you create region-specific merchants without duplicating professions.
What blocks can I use as workstations?
You can use any solid block in the game as a workstation—the mod doesn't restrict you to vanilla job blocks. Just reference the block's ID in your profession file.
How do I make a villager sell enchanted items or custom potions?
In your trade list, use the item NBT syntax to specify enchantments, potion effects, or custom names directly in the trade entry. The mod will handle applying these properties when the trade occurs.

See all 10 Villager API questions ›

Other wikis you may find useful.