SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedLibraries & compatibility

Villager API

by frikinjay · for Minecraft

An API to add custom villager professions and villager biome types with custom trades without writing code.

140KDownloads
5d agoLast updated
LGPL-3.0-onlyLicense
Fabric · NeoForge +1Loaders

About Villager API

From Modrinth

An API to add custom villager professions and villager biome types with custom trades without writing code.

Villager API

A simple data-driven framework for making custom villager professions, types, and trades without touching any code. Just drop JSON files in a folder and you're done. You can also override or merge custom trades into vanilla or other modded villager's trades.

What does it do?

This mod lets you create completely custom villagers with your own:

  • Professions - New jobs with custom workstations and trading lists
  • Types - Different villager appearances tied to specific biomes
  • Trades - Full control over what villagers buy and sell at each level
  • Hero Gifts - Custom loot tables for post-raid rewards

Everything is handled through JSON files in the villagerpacks folder. No coding, no complex setup—just make your files and load up the game.

Quick Example

Want an Alchemist villager who uses a crying obsidian block as their workstation?

  1. Create villagerpacks/my_pack/villagers/poi_types/alchemist.json and villagerpacks/my_pack/villagerapi_config.json
  2. Define the workstation block
  3. Add the profession file linking to that POI type
  4. Set up your trades
  5. Drop in textures for the profession overlay

That's it. The mod handles registration, trade mechanics, and everything else.

What can you customize?

  • Workstations - Any block can be a job site
  • Trading pools - Define exactly what villagers offer at each experience level (Novice through Master)
  • Item components - Full support for enchantments, custom names, potions, and all the data components Minecraft uses
  • Treasure maps - Sell maps to modded or vanilla structures with custom markers
  • Biome appearances - Make villagers look different depending on where they spawn
  • Biome-specific trades - Same profession, different inventory based on villager's biome type

Who and what is this for?

If you've ever wanted to add villagers to your modpack or mod without dealing with Java code, this is for you. It's built for pack makers and modders who want villager content without the headache of getting into learning and writing java code.

Works with both regular resource pack like villager packs and as part of mods by simply putting a villagers folder in your mods main directory. Multiple packs can run at once—later packs override earlier ones where there's overlap.

Full Documentation

Check the complete documentation with examples and all available options here: https://github.com/frikinjay/villagerapi/blob/main/DOCUMENTATION.md

You can generate a pack online here without having to manually create all the files: Villager Pack Generator

The docs include the full pack structure, all JSON formats, item component examples, and a complete example pack to get you started.

Highlights

From source data

Game versions

Supports 25 Minecraft versions, the newest being 26.4-snapshot-2.

Loaders

Runs on Fabric, NeoForge and Quilt.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Libraries & compatibility

Foundations and fixes other mods build on. Usually installed because something else needs it.

Runs on your server

From source side support

Modrinth lists Villager API as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
FabricNeoForgeQuilt
Runs on
Serverrequired on the server
Game versions
26.4-snapshot-2 and 24 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓Authorfrikinjay, as published on Modrinth
  • ✓LicenseLGPL-3.0-onlyFree

Villager API, answered

Generated from the mod’s own source data.

Do my players need to install Villager API?

Modrinth lists Villager API as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Fabric, NeoForge and Quilt.

Is it free?

Yes. Villager API is free to download from Modrinth. Its license is LGPL-3.0-only.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Villager API on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add Villager API in one click.