Cities

On this page you will learn how to create a city 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 city folder

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

Step 3 - Create the matching building configuration file

Run the command :

/oconfig create city <name>

Here the <name> argument must be the same name as the xml file you created in Step 1. As an example if your building xml file is called build.xml, you will have to run the command : "/oconfig create city build"

This command will create a file configuration located into the /plugins/Ouranos/cities/ 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 city 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 city_custom property list, add the name of your new build :

city_custom: [<name>]

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

Last updated