Raftv0.2.02026年12月3日 更新

自定义配方

进入游戏主菜单时,模组会在 `BepInEx/plugins/CustomRecipes` 生成原版烹饪和制作配方文件。复制配方到相应的自定义 JSON 文件即可新增或修改配方;游戏内可按默认热键 Page Down 重新加载。

启动游戏并进入主菜单后,模组会在 BepInEx/plugins/CustomRecipes 生成原版配方文件,包括烹饪配方和制作配方。

要新增或修改配方,将原版配方复制到对应的自定义文件中。文件名须以 custom_cooking 或 custom_crafting 开头,并使用 .json 扩展名。

制作配方示例

{
  "Sand": {
    "craftingCategory": 2,
    "subCategory": "",
    "subCategoryOrder": 0,
    "skins": [],
    "newCostToCraft": [
      {
        "items": ["Stone"],
        "amount": 2
      }
    ],
    "amountToCraft": 1,
    "learned": true,
    "learnedFromBeginning": true,
    "_hiddenInResearchTable": false,
    "extraBlueprintItems": [],
    "learnedViaBlueprint": false
  },
  "Jar_Honey": {
    "craftingCategory": 2,
    "subCategory": "",
    "subCategoryOrder": 0,
    "skins": [],
    "newCostToCraft": [
      {
        "items": ["HoneyComb"],
        "amount": 6
      }
    ],
    "amountToCraft": 4,
    "learned": true,
    "learnedFromBeginning": false,
    "_hiddenInResearchTable": false,
    "extraBlueprintItems": [],
    "learnedViaBlueprint": false
  }
}

此例移除了蜂蜜罐配方对玻璃的需求,并新增沙子的制作配方,材料为 2 个石头。

烹饪配方示例

[
  {
    "recipeType": 0,
    "recipeIndex": -1,
    "result": "Claybowl_HeadBroth",
    "isBuff": false,
    "portions": 1,
    "cookTime": 3,
    "recipeCost": [
      {
        "items": ["Raw_Potato", "Raw_Beet"],
        "amount": 2
      },
      {
        "items": ["Head_PoisonPuffer"],
        "amount": 2
      }
    ]
  },
  {
    "recipeType": 0,
    "recipeIndex": 10,
    "result": "ClayPlate_MushroomOmelette",
    "isBuff": false,
    "portions": 1,
    "cookTime": 3,
    "recipeCost": [
      {
        "items": ["Egg"],
        "amount": 4
      }
    ]
  }
]

此例新增 Claybowl_HeadBroth 配方,并修改 ClayPlate_MushroomOmelette 的现有配方。新增配方时将 recipeIndex 设为 -1,模组会寻找可用索引。

游戏内按重新加载热键可重载配方文件,默认热键为 Page Down。

安装

此模组使用 BepInEx,不使用其他模组管理器。可通过以下工具安装 Raft 的 BepInEx:

https://www.nexusmods.com/site/mods/287

也可以自行从 GitHub 下载 BepInEx。安装 BepInEx 后,将模组 DLL 放入游戏的 BepInEx/plugins 文件夹。

来源与文件

  • 原作者:aedenthorn
  • 原项目:Custom Recipes
  • 文件:Custom Recipes(ID:276)

文件说明

Fixed new cooking recipes

前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。

<!-- aoe-mods-source:nexusmods:raft:120 -->

下载模块

共 1 个来源
立即下载推荐来源
前往下载