Last updated
Last updated
On this page you will learn how to create a city building and place it into your world configuration file
Follow the serialization tutorial (see ) to create your building xml file
Your xml file have to be placed into the /plugins/Ouranos/cities/ folder.
Run the command :
Here the <name> argument must be the same name as the xml file you created in . 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.
You can now fill the configuration file created in with mobs (see ) and NPCs (see ). When it's done you can move to the next step.
Go into your world configuration file (could be /plugins/Ouranos/world/default.yml or the specific world configuration, see ). Then into the city_custom property list, add the name of your new build :
You can now use /oconfig reload command and create your world to see the new building spawn into the cities