MoonCode Studio

How To Add New Recipe To Database

Add new data to Recipes.json in folder: Resources - Recipes

{
    "id": 3,
    "itemID": 8,
    "items": 
    [
        {
            "id": 7,
            "amount": 1
        },
        {
            "id": 6,
            "amount": 2
        }
    ]
}                                   

“itemID” and “id” in “items” from Recipes.json must correspond to items “id” from Items.json

Fields in Recipes.json file must correspond to the fields in “Recipe” class in CraftDatabase.cs script