Villager API

Villager API

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

by
58.4K Downloads
fabricneoforgequiltlibrarymobsutility
Rent Server with this Mod

About this Mod

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.

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 location

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.

Available Versions

Villager API 1.26.1.3release
MC 1.21.11neoforge
January 27, 2026
Villager API 1.26.1.3release
MC 1.21.11fabric, quilt
January 27, 2026
Villager API 1.26.1.3release
MC 1.21.1neoforge
January 27, 2026
Villager API 1.26.1.3release
MC 1.21.1fabric, quilt
January 27, 2026
Villager API 1.26.1.2release
MC 1.21.1fabric, quilt
January 23, 2026

How to Install Villager API on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "Villager API". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricneoforgequilt

Minecraft Versions

1.21.11, 1.21.1

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Villager API server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is Villager API compatible with fabric and neoforge and quilt?

Villager API officially supports fabric, neoforge, quilt for Minecraft 1.21.11, 1.21.1. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Villager API – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Villager API consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Villager API with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Required

Supported Versions

1.21.111.21.1