Skip to content

Teh's Core Mod: Content Packs: Recipes

TehPers edited this page Feb 3, 2019 · 5 revisions

By adding a "Recipes" section to the content file, new recipes can be created:

{
    "recipes": [
        {
            "name": "Transmute Candy -> Diamond",
            "ingredients": [
                { "id": "candy", "quantity": 10 }
            ],
            "results": [
                { "id": 72, "type": "object", "quantity": 2 }
            ]
        }
    ]
}

Properties

Name Type Description
Name string (Optional) The name of the recipe. Your localization files will be used if possible. If not specified, the name of the first result will be used instead.
Ingredients part[] The ingredients required to make this recipe.
Results part[] The items created by this recipe. (You may specify multiple results)

Parts

Each ingredient and result has one of these two formats:

Game items

Name Type Description
ID integer The ID of the item.
Quantity integer The quantity of the item.
Type string The type of the item: "object", "bigCraftable", "weapon", or "hat"

Mod items

Name Type Description
ID string The name of the item. Items from other mods can be referenced with the format <mod unique ID>:<item name>.
Quantity integer The quantity of the item.