Villages

On this page you will learn how to create a village building and place it into your world configuration file

Step 1 - Create the building xml file

Follow the serialization tutorial (see Building) to create your building xml file

Step 2 - Place your xml file into the village folder

Your xml file have to be placed into the /plugins/Ouranos/villages/ folder.

Step 3 - Create the matching building configuration file

Run the command :

/oconfig create village <name>

This command will create a file configuration located into the /plugins/Ouranos/villages/ folder called <name>.yml. This file will match the npcs and mobs included into the building.xml file.

Step 4 - Fill the configuration file

You can now fill the configuration file created in Step 3 with mobs (see Mobs) and NPCs (see NPCs). When it's done you can move to the next step.

Step 5 - Add the village build into the world configuration file

Go into your world configuration file (could be /plugins/Ouranos/world/default.yml or the specific world configuration, see World configuration). Then into the village_custom property list, add the name of your new build :

village_custom: [<name>]

You can now use /oconfig reload command and create your world to see the new building spawn into the villages

Last updated