Official modding guide

Home / Data Files

decorationsInfo.json

The decorationsInfo.json file contains a list of decorations, such as grass and small rocks, to be added to the build menu. The structure of this file contains an array of objects in JSON format. These objects must have the following keys:

Additionally, the following keys are optional:

Lastly, a decoration object can have keys in it to specify how much it costs. These keys correspond to the ids of the materials used to purchase/build it, so modded materials work as keys. If unspecified, they default to 0. The built in ones are as follows:

decorationsInfo.json can contain any number of decorations in it. Specifying a textureName that already exists will NOT overwrite the properties of that decoration, instead it will add a duplicate.

Here's an example of a possible decorationsInfo.json:

[
    {
        "textureName": "spr_grass",
        "food": 0,
        "wood": 1,
        "stone": 0,
        "machineParts": 0,
        "knowledge": 0,
        "category": "Decoration & Nature"
    },
    {
        "textureName": "spr_redgrass",
        "food": 0,
        "wood": 1,
        "stone": 0,
        "machineParts": 0,
        "knowledge": 0,
        "category": "Decoration & Nature",
        "specialInfo": ["geneEditingReq"]
    },
    {
        "textureName": "spr_lanterns",
        "food": 0,
        "wood": 0,
        "stone": 5,
        "machineParts": 0,
        "knowledge": 0,
        "category": "Decoration & Nature",
        "specialInfo": ["snow"]
    }
]

GitHub repositoryOfficial modding guide