All Mods Resource Packs Data Packs Shaders Modpacks Plugins
Villager API

Villager API

by frikinjay • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.4.x 26.3
Neoforge
1d ago 1
26.4.x 26.3
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
26.4-snapshot-1 26.3
Neoforge
1d ago 1
26.4-snapshot-1 26.3
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
26.4-snapshot-1 26.3
Neoforge
1d ago 1
26.4-snapshot-1 26.3
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
26.4-snapshot-1 26.3
Neoforge
1d ago 1
26.4-snapshot-1 26.3
Fabric Quilt
1d ago 1
26.4-snapshot-1 26.3
Neoforge
1d ago 1
26.4-snapshot-1 26.3
Fabric Quilt
1d ago 1
26.4-snapshot-1 26.3
Neoforge
1d ago 1
26.4-snapshot-1 26.3
Fabric Quilt
1d ago 1
26.4-snapshot-1 26.3.x 26.2 +1
Neoforge
1d ago 1
26.4-snapshot-1 26.3.x 26.2 +1
Fabric Quilt
1d ago 1
1.21.11
Neoforge
1d ago 1
1.21.11
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.11
Neoforge
1d ago 1
1.21.11
Fabric Quilt
1d ago 1
1.21.11
Neoforge
1d ago 1
1.21.11
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.11
Neoforge
1d ago 1
1.21.11
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.11
Neoforge
1d ago 1
1.21.11
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
1.21.1
Fabric Quilt
1d ago 1
1.21.1
Neoforge
1d ago 1
  • Added village_types directory to villager packs to register new village types for a biome with complete control of how it'll look
  • Added village_structures directory to add structures to existing vanilla villages or custom villages even from other mods as long as they follow the vanilla convention
  • Multiple VillagerPacks adding villager types to the same biome will be handled properly now instead of clashing and every pack will get to have its villager type in the same biome
  • Trade merging, overriding, priority and ordering have been added with many other customizations
  • Completely overhauled and improved the VillagerPack generator over at https://villagerapi.neoterra.online
  • Added village_types directory to villager packs to register new village types for a biome with complete control of how it'll look
  • Added village_structures directory to add structures to existing vanilla villages or custom villages even from other mods as long as they follow the vanilla convention
  • Multiple VillagerPacks adding villager types to the same biome will be handled properly now instead of clashing and every pack will get to have its villager type in the same biome
  • Trade merging, overriding, priority and ordering have been added with many other customizations
  • Completely overhauled and improved the VillagerPack generator over at https://villagerapi.neoterra.online
  • Added village_types directory to villager packs to register new village types for a biome with complete control of how it'll look
  • Added village_structures directory to add structures to existing vanilla villages or custom villages even from other mods as long as they follow the vanilla convention
  • Multiple VillagerPacks adding villager types to the same biome will be handled properly now instead of clashing and every pack will get to have its villager type in the same biome
  • Trade merging, overriding, priority and ordering have been added with many other customizations
  • Completely overhauled and improved the VillagerPack generator over at https://villagerapi.neoterra.online
  • Added village_types directory to villager packs to register new village types for a biome with complete control of how it'll look
  • Added village_structures directory to add structures to existing vanilla villages or custom villages even from other mods as long as they follow the vanilla convention
  • Multiple VillagerPacks adding villager types to the same biome will be handled properly now instead of clashing and every pack will get to have its villager type in the same biome
  • Trade merging, overriding, priority and ordering have been added with many other customizations
  • Completely overhauled and improved the VillagerPack generator over at https://villagerapi.neoterra.online
  • Fixed POI assignment once and for all and removed custom entrypoint
  • Fixed POI assignment once and for all and removed custom entrypoint
  • Fixed POI assignment once and for all and removed custom entrypoint
  • Fixed POI assignment once and for all and removed custom entrypoint
  • Villagerpacks now also load from the Resourcepacks folder in the instance direcotry allowing for the packs to be uploaded and downloaded from modrinth and curseforge
  • Villagerpacks now also load from the Resourcepacks folder in the instance direcotry allowing for the packs to be uploaded and downloaded from modrinth and curseforge
  • You can now change trades for vanilla and other mods' villagers, not just your own.
  • Trades can be added to a villager's existing trades or replace them, level by level.
  • New options control how many trades a villager gets, how likely each trade is, and the most trades a villager can have at a level along with trade grouping using multiple villagerpacks with their own trades for the same profession and or level for that profession.
  • Biome-specific trades can now replace a villager's normal trades for certain villager types.
  • New villagerpacks_order.json file in the villagerpacks folder lets you choose the villagerpacks load order.
  • Villager packs can now be .jar files, and packs that only change trades no longer need a data folder.
  • Fixed bugs related to /reload and general stability
  • Villagerpacks now also load from the Resourcepacks folder in the instance direcotry allowing for the packs to be uploaded and downloaded from modrinth and curseforge
  • You can now change trades for vanilla and other mods' villagers, not just your own.
  • Trades can be added to a villager's existing trades or replace them, level by level.
  • New options control how many trades a villager gets, how likely each trade is, and the most trades a villager can have at a level along with trade grouping using multiple villagerpacks with their own trades for the same profession and or level for that profession.
  • Biome-specific trades can now replace a villager's normal trades for certain villager types.
  • New villagerpacks_order.json file in the villagerpacks folder lets you choose the villagerpacks load order.
  • Villager packs can now be .jar files, and packs that only change trades no longer need a data folder.
  • Fixed bugs related to /reload and general stability
  • Villagerpacks now also load from the Resourcepacks folder in the instance direcotry allowing for the packs to be uploaded and downloaded from modrinth and curseforge
  • You can now change trades for vanilla and other mods' villagers, not just your own.
  • Trades can be added to a villager's existing trades or replace them, level by level.
  • New options control how many trades a villager gets, how likely each trade is, and the most trades a villager can have at a level along with trade grouping using multiple villagerpacks with their own trades for the same profession and or level for that profession.
  • Biome-specific trades can now replace a villager's normal trades for certain villager types.
  • New villagerpacks_order.json file in the villagerpacks folder lets you choose the villagerpacks load order.
  • Villager packs can now be .jar files, and packs that only change trades no longer need a data folder.
  • You can now change trades for vanilla and other mods' villagers, not just your own.
  • Trades can be added to a villager's existing trades or replace them, level by level.
  • New options control how many trades a villager gets, how likely each trade is, and the most trades a villager can have at a level along with trade grouping using multiple villagerpacks with their own trades for the same profession and or level for that profession.
  • Biome-specific trades can now replace a villager's normal trades for certain villager types.
  • New villagerpacks_order.json file in the villagerpacks folder lets you choose the villagerpacks load order.
  • Villager packs can now be .jar files, and packs that only change trades no longer need a data folder.
  • Custom map textures now auto generate with the map decoration over the map with optional base map tinting
  • Custom map textures now auto generate with the map decoration over the map with optional base map tinting
  • Disabled map_color in the custom maps decoration (Mojang removed them, will see if i can implement my own)
  • Updated to 26.3+
  • Disabled map_color in the custom maps decoration (Mojang removed them, will see if i can implement my own)
  • Updated to 26.3+
  • Updated to 26.x
  • Updated to 26.x
  • Fixed fabric JIJ mod issues
  • Fixed fabric JIJ mod issues
  • Fixed fabric JIJ mod issues
  • Fixed fabric JIJ mod issues
  • Fixed loading villager packs from mod jars
  • Fixed loading villager packs from mod jars
  • Fixed loading villager packs from mod jars
  • Fixed loading villager packs from mod jars
  • Villagerpacks now load from mods independent of the directory the mods are loaded from
  • Villagerpacks now load from mods independent of the directory the mods are loaded from
Villager API Icon
Download Villager API
Select game version
Select platform