Official modding guide

Home / Data Files

buildinginfo.json

The buildinginfo.json file controls what buildings are registered in the game. The structure of this file contains an array of building objects in JSON format. Building objects must have the following keys:

Additionally, the following keys are optional:

Lastly, a building 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:

buildinginfo.json can contain any number of buildings in it. Specifying a className that already exists will overwrite the properties of that building.

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

[
	{
		"className": "CorporationOfTheOwl",
		"name": "Corporation of the Owl HQ",
		"description": "They see everything.",
		"food": 50000,
		"wood": 50000,
		"stone": 0,
		"machineParts": 0,
		"refinedMetal": 0,
		"computerChips": 1250,
		"knowledge": 75000,
		"category": "Unique Buildings",
		"unlockedByDefault": false,
		"specialInfo": [
			"unique"
		],
		"residents": 12,
		"quality": 100,
		"jobs": 12,
		"showUnlockHint": "Build The Machine to unlock!"
	},
	{
		"className": "FunctionalHouse",
		"name": "Functional House",
		"description": "Don't complain, this house is exactly what you need.",
		"food": 0,
		"wood": 0,
		"stone": 10,
		"machineParts": 0,
		"knowledge": 10000,
		"computerChips": 1,
		"category": "Houses",
		"unlockedByDefault": false,
		"specialInfo": [],
		"residents": 10,
		"quality": 35
	}
]

GitHub repositoryOfficial modding guide