🔬
Urbek City Builder: Modding Doc
  • Urbek City Builder: Modding
  • Getting Started
    • Creating Your First Mod
    • How to use JSON
    • Make a 3D Model
    • Mod Folder Structure
  • Guides
    • Adding Constructions
    • Adding Models
    • Replace Models
  • In depth knowledge
    • Structure Model Format
    • Structure Attributes
      • Appearance
      • Availability & Unblock
      • Identification
      • Placement
      • Paths
      • Policy
      • Resources
      • Sound
      • Upgrades & Abandon
    • In-Game Data Names
      • Biomes
      • Building Category
      • Building Names
        • Map 0 - Temperate
        • Map 1 - Desert
        • Map 2 - Archipel
        • Map 3 - Forest
        • Map 4 - Ruins
      • Global Variables
      • Local Variables
      • Resources
Powered by GitBook
On this page
  • Calculation
  • By Building - byBuilding
  • Counts Itself - countsItself
  • Production & Consume
  • Cost - cost
  • Local Variables - localVariables
  • Produces - produces
  • Resource Extraction - resourceExtraction
  • Storage - storage
  1. In depth knowledge
  2. Structure Attributes

Resources

Calculation

By Building - byBuilding

If True the building's production will be calculated by the building instead. If False the building production/consume will be done by each tile.

Attribute Type: Boolean (default: False).

As example, if you have a building of 3x3, the production would be 9x what you specified in case this value is not defined or set as False.

This also apply to how it's seen by other building, they'll count it as only 1 tile when doing their requirements calculations.

Counts Itself - countsItself

The building requirements or upgrades will count their own resource and variables.

Attribute Type: Boolean (default: False).

Production & Consume

To cause a consomation or usage, just set the values as negatives.

Cost - cost

Cost of the building on placement.

Attribute Type: List of Resources.

Resource Format

Format:

{
    "rec": "madera",
    "q": 2
}

Rec (Resource): Name of resource

Q: Quantity.

The building will cost:

  • 50x Work

  • 10x Wood

"cost": 
	[
		{
			"rec": "trabajo0",
			"q": 50
		},
		{
			"rec": "madera",
			"q": 10
		}
	]

The building will cost:

  • 20x Coal

  • 15x Highly Skilled Work

"cost": 
	[
		{
			"rec": "carbon",
			"q": 20
		},
		{
			"rec": "trabajo2",
			"q": 15
		}
	]

Local Variables - localVariables

Attribute Type: List of Resources.

Local Variable Format

Format:

{
    "locVar": "ocio",
    "q": -3
}

locVar: Name of Local Variable

Q: Quantity.

The building will produce:

  • 10x Density

  • 5x Leisure

"localVariables": 
	[
		{
			"locVar": "densidad",
			"q": 10
		},
		{
			"locVar": "comodidad",
			"q": 5
		}
	]

The building will produce:

  • 10x Density

The building will consume:

  • 5x Leisure

"localVariables": 
	[
		{
			"locVar": "densidad",
			"q": 10
		},
		{
			"locVar": "comodidad",
			"q": -5
		}
	]

Produces - produces

Attribute Type: List of Resources.

Resource Format

Format:

{
    "rec": "madera",
    "q": 2
}

Rec (Resource): Name of resource

Q: Quantity.

Resource Extraction - resourceExtraction

Attribute Type: Resource Extraction.

Resource Extraction

Format:

{
    "resource": "madera",
    "q": 2,
    "distance": 10
}

Resource: Name of resource

Q: Quantity.

Distance: Distance at which it will collect resources

Storage - storage

Attribute Type: List of Resources.

Resource Format

Format:

{
    "rec": "madera",
    "q": 2
}

Rec (Resource): Name of resource

Q: Quantity.

PreviousPolicyNextSound

Last updated 2 years ago

Produce/Consume one or multiples .

Produce/Consume one or multiples

Store one or multiples .

Store one or multiples .

local variables
resources
resources
resources