Structures

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

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

Step 3 - Create the matching building configuration file

Run the command :

/oconfig create structure <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 structure build"

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

structures_custom: [<name>]

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

Last updated