Home

ItemGroup

An item group. Item groups are the tabs shown above the list of craftable items in the player's inventory GUI. The built-in groups are "logistics", "production", "intermediate-products" and "combat" but mods can define their own.

Items are sorted into item groups by sorting them into a subgroup which then belongs to an item group.

Parent

Properties

icons

The icon that is shown to represent this item group. Can't be an empty array.

icon

Path to the icon that is shown to represent this item group.

Only loaded, and mandatory if icons is not defined.

icon_size

The size of the square icon, in pixels. E.g. 32 for a 32px by 32px icon. Must be larger than 0.

The base game uses 128px icons for item groups.

Only loaded if icons is not defined.

order_in_recipe

Item ingredients in recipes are ordered by item group. The order_in_recipe property can be used to specify the ordering in recipes without affecting the inventory order.