Skip to content

Resource Types

Overview

Resource types are named ingredient categories that allow crafting recipes to accept any item belonging to a group rather than requiring a specific item ID. For example, a recipe with ResourceTypeId: "Meats" will accept any item tagged with the Meats resource type. Items declare their resource type membership via the ResourceTypes array in their item definition.

File Location

Assets/Server/Item/ResourceTypes/<ResourceTypeId>.json

Schema

Resource type files are minimal. Most contain only an icon path; the membership list is defined on the item side via ResourceTypes in each item definition.

FieldTypeRequiredDefaultDescription
IconstringNoPath to the icon image displayed in recipe UI to represent this resource type (e.g. "Icons/ResourceTypes/Any_Meat.png").

Available Resource Types (Partial List)

Resource Type IDIcon
BoneIcons/ResourceTypes/Any_Bone.png
Books
Bricks
Charcoal
Clays
Copper_Iron_Bar
Fish
Fish_Common
Fish_Epic
Fish_Legendary
Fish_Rare
Fish_Uncommon
Flowers
Foods
Fruits
FuelIcons/ResourceTypes/Fuel.png
Ice
MeatsIcons/ResourceTypes/Any_Meat.png
Metal_BarsIcons/ResourceTypes/Rock.png
Milk_Bucket
Moss
Mushrooms
Rock
Rubble
Salvage_*
Sands
Soils
Vegetables
Wood_All
Wood_Trunk

Examples

Assets/Server/Item/ResourceTypes/Meats.json:

{
"Icon": "Icons/ResourceTypes/Any_Meat.png"
}

Assets/Server/Item/ResourceTypes/Fuel.json:

{
"Icon": "Icons/ResourceTypes/Fuel.png"
}

Assets/Server/Item/ResourceTypes/Foods.json:

{}

How Items Declare Resource Type Membership

In an item definition, add a ResourceTypes array with one entry per type the item belongs to:

{
"ResourceTypes": [
{ "Id": "Meats" }
]
}

An item can belong to multiple resource types. For example, Food_Fish_Raw belongs to both Fish and the parent template’s food types.

How Recipes Reference Resource Types

In a recipe Input entry, use ResourceTypeId instead of ItemId:

{
"Recipe": {
"Input": [
{
"ResourceTypeId": "Fuel",
"Quantity": 3
},
{
"ResourceTypeId": "Fish",
"Quantity": 1
}
]
}
}

This allows the recipe to accept any item tagged with the matching resource type, rather than requiring one specific item.