Download Custom Village — Minecraft Mods — MetaMods

Custom Village

Active

Downloads

0

Last update

2 years ago
Client
Libraries

Custom Village

Villager Customization via JSON

This module provides the ability to fine-tune village residents using JSON files. You have access to three main components for customization: professions, appearance, and trade offers.

Automatic File Scanning

The system automatically analyzes all JSON files located in the assets/mod/villages directory. For version 1.12.2, there is no datapack support, so resource data must be packaged directly into the mod. Alternatively, you can modify the custom_village_hileb/villages directory within the mod itself to utilize its functionality.

Learning Examples

The mod comes with 5 ready-made examples in the cvh/villages folder. These demonstration files will help you understand the JSON format, but they don't activate in the game on their own.

Important Recommendations

File Registration Order

Pay special attention to JSON file naming, as their names directly affect the registration sequence. If trade offers register before professions, the game will crash. Thus, deals for custom professions must always follow the definition of the professions themselves.

For Mod Developers

Mod developers are not recommended to use JSON for managing their villagers, since all operations performed through JSON can be implemented without its use.

Log Monitoring

Carefully monitor system logs. Successful registrations display as "load village+file name", failed attempts are accompanied by error messages, and skipped files don't output any information.

Project members
Hileb

Hileb

Created: 18 Aug 2023

ID: 37489