Create structures
Create your own, custom, structures for your world

EWG objects

In EpicWorldGenerator, all structures is generated using "EWG Object". The object has multiple properties that can be defined using .json syntax. The most important property is the file the object refer to. All structures in EpicWorldGenerator needs to be saved as its own file with a .EWG extension. This file is made to optimize the speed and also store the anchor point to the object.
An EWG object can be used both under "customTrees" and "customStructures".
A video tutorial on this process was made by Maiskorf. You can find this video here. Keep in mind that this video might sligthly differ from the latest version.

Create a new structure file

    1.
    Select an object using world edit
    2.
    After, stand in the middle of the structure, or the center. click F3 and look at the column that shows the XYZ values. This feature is included in the installation of structures to prevent buildings being flown in mid-air. Example: /ewg create <center X> <center Y> <center Z> <name>; type in only whole numbers, not decimals.
    3.
    The structure is now saved under the EpicWorldGenerator folder named "EWGFiles" , which you can find in your */plugins folder.

Make the file generate

The file can be generated using different configurations. Each configuration has to contain the file name.
    1.
    Open the biome file located at *<world name>/settings/biomes/default/<biome>.json
    2.
    Find the "customTrees" or "customStructures" section, depending on if you want it to generate a tree or a structure
    3.
    Put the following content in the list
    4.
    Change where is specifies "CUSTOM_jungle_tower" to "CUSTOM<name>" Be aware that an underscore represents a space.
    5.
    All other categories are explained in the Biomes Wiki. However, most of the other information provided is not required to be touch, and doesn't need to be in most cases.
    6.
    Congrats, now go show off your new build!
1
{
2
"name": "CUSTOM_<name>", //The file it is referring to
3
"density": 0.002, //Chance per X and y coordinate in a chunk
4
"size": "MEDIUM", //Can often be ignored, used for trees in some cases
5
"type": "DECO", //Tells the plugin if it is an tree or an structure that is a bit bigger
6
"blocksRequiredUnderneath": [ //Blocks that need to be under the object to spawn
7
"GRASS"
8
],
9
"blacklistedDecoBlocks": [], //Blocks in the
10
"spawnOnGround": true, //If the structure has to be placed on the ground
11
"overrideExsistingBlocks": false, //If the structure should remove exsisting blocks in the terrain
12
"allowRotation": false, //If it should be randomly rotated
13
"applyPhysics": true, //If it should apply physics like block updated under creation
14
"replaceAir": false, //If the structure only should replace air
15
"minY": 50, //Minimum y coordinate for spawning
16
"maxY": 90, //Maximum y coordinate for spawning
17
"maxSlope": 0.0, //Maximum slope, slop is the derivated to the curve of the terrain
18
"minSlope": 0.0 //Minimum slope
19
"snapToXGrid": 150, //If you want the object to spawn in a grid, where in this case it is 150 blocks between the objects at the x-axis. You can disable it by setting the number to -1. If you have it enabled, keep in mind to increase the density option.
20
"snapToYGrid": 150,//Same as "snapToXGrid", just y-axis. (z-axis in minecraft)
21
"gridXOffset": 0, //Offset from center, used if you have multiple objects with the same grid size to prevent them from spawning at the same places
22
"gridYOffset": 0, //Same as above
23
"anchorYOffset": 0 // Offset of the files y-center (or floor). Used to lift the object up or down. Positive numbers will lift the object up.
24
25
}
Copied!
Under "density", you can also use the scientific "E". This works as follows: E is the same as "Ten-to-the-power-of". In an example: "density": 6.0E-6. This equals to 6.0 * 10^-6, which is the same as 0.000006.
Adding contents to chests in your structures is a possibility. Check this for a guide on how to do just that.

Support

If you have any issues with any of the settings in this file, make sure to contact our support team at Discord.
Last modified 1yr ago
Copy link