Wiki 9Minecraft Wiki 9Minecraft
Corgilib Wiki › Guides › Configuring Custom Villager Trades and Mob Filters

Configuring Custom Villager Trades and Mob Filters

CorgiLib provides built-in codec registries that allow dependent mods to implement custom villager trades and precise mob filters through their configuration files.

Working with Mob Filters

Mods that use CorgiLib's mob filtering system let you control how specific entities are sorted and targeted in the game world.

1. Open the relevant dependent mod's configuration file in your config directory.

2. Locate the sections dedicated to entity lists or mob targeting.

3. Add or remove mob identifiers according to the instructions provided in the file comments.

4. Save the file to update which creatures the mod's features affect.

Modifying Villager Trades

CorgiLib includes a dedicated villager trade codec registry, allowing companion mods to define trades cleanly through data configurations.

1. In your configuration files, locate the villager trade lists provided by the dependent mod.

2. Use the commented guidelines in the file to view available trade tiers, required payment items, and offered goods.

3. Adjust the trade entries to balance trade costs or modify the rewards offered by specific villager professions.

4. Restart the game to load the updated trade codec into your world.