Item groups¶
Item groups associate items (e.g. coal, sand, TVs, etc.) with storage (vehicles, warehouses) without having to list all supported items in each storage. This makes mod compatibility easier and eliminates the need for compatibility patches.
Additionally, it standardizes the representation of similar items in the game, making it more predictable for players.
If your mod adds new items or storage assets (vehicles or warehouses), it's recommended to update them to utilize item groups.
Update item assets¶
- Set your item as belonging to one of available item groups using the new
ItemGroupUri
property. - Set meshes used to display an item in different kind of storages using
MeshUris
property (keys are mesh tags).
Update storage assets¶
Note
Different capacity, resolution, or spacing settings per item aren't supported by this approach. If it's essential for your mod, you should stick to using Items
property.
By the way, you can mix both approaches.
.storages
¶
- List desired item groups in the
ItemGroupUris
array. - Set
Items
property tonull
.
.passengerstorages
¶
- List desired item groups in the
ItemGroupUris
array. - Move
Capacity
settings to the root. - Set
Items
property tonull
.
.stackstorages
¶
- List desired item groups in the
ItemGroupUris
array. - Move essentinal
Capacity
,Resolution
, andSpacing
settings to the root (if set tonull
, they will be calculated automatically). - Set
MeshTag
property todefault
. - Set
Items
property tonull
.
.heapstorages
¶
- List desired item groups in the
ItemGroupUris
array. - Move essentinal
Capacity
,Resolution
, andSpacing
settings to the root (if set tonull
, they will be calculated automatically). - Set
MeshTag
property tovehicle_heap
. - Set
Items
property tonull
.
Built-in groups¶
URI | Items |
---|---|
base/bulk.itemgroup | |
base/general.itemgroup | |
base/long_general.itemgroup | |
base/mail.itemgroup | |
base/open_bulk.itemgroup | |
base/open_general.itemgroup | |
base/passenger.itemgroup |
The next item groups are not used in the base game yet, but already can be utilized by mods.
URI | |
---|---|
base/dangerous_liquid.itemgroup | |
base/expensive.itemgroup | |
base/liquid.itemgroup | |
base/perishable.itemgroup |
Feedback wanted
You can share your suggestions for additional item categories to be included in the base game via Discord.
Mesh tags¶
Mesh tags are used to define what mesh should be used to display an item inside an open storage.
Base game provides the next mesh tags:
Mesh tag | Storage | Description |
---|---|---|
default | .stackstorages | Used to display items in stacks |
vehicle_heap | .heapstorages | Used to display items as heap inside vehicles |