Crafting Prerequisites 是一款实用模组,允许你通过要求玩家背包中拥有指定物品来限制合成配方。
该前置物品在合成时不会被消耗,而是作为钥匙或进度证明发挥作用。所有规则均通过 /config/ 文件夹中的单个 JSON 文件进行管理,为整合包制作者和服务器管理员提供了一种简单直接的方式来控制合成进度。
✨版本 1.3.0 新增:现已支持 JEI & EMI!
在你喜爱的配方查看器界面中即时查看哪些配方具有前置条件。所需物品的图标将显示在配方上,详细的工具提示将向你展示确切的要求和你的当前进度,让你始终清楚制作所需的物品。
注意:你必须在 EMI 的配置文件(config/emi.css)中启用 show-recipe-decorators: true 才能显示图标。这是 EMI API 的要求。
未来更新计划支持 REI。敬请期待!

主要特性
- 非消耗性要求: 仅检查前置物品,不会将其消耗。成功合成后,该物品仍保留在玩家的背包中。
- 基于 JSON 的配置: 通过编辑
crafting_prerequisites.json 文件轻松添加或修改规则。
- 指定物品与数量: 定义所需物品的 ID 以及玩家必须拥有的最小数量。
- 自定义游戏内消息: 设置自定义通知消息,告知玩家合成失败的原因。
- 服务端逻辑: 模组的核心功能在服务端运行,因此对客户端来说是可选的。
使用场景
- 强制玩家在能够用某种材料制作工具之前,先合成该材料的存储方块。
- 将配方锁定在独特物品之后,例如 Boss 掉落物或任务奖励。
- 锁定某个模组或等级的配方,直到玩家从上一阶段获得关键物品。
配置示例 (/config/crafting_prerequisites.json)
[
{
"output": "minecraft:diamond_pickaxe",
"required_item": "minecraft:diamond_block",
"count": 1,
"message": "You must craft a Diamond Block first."
}
]
此模组非常适合控制游戏进度并在你的整合包中创建自定义合成序列。
Crafting Prerequisites is a utility mod that allows you to gate crafting recipes by requiring players to possess a specified item in their inventory.
This prerequisite item is not consumed on craft, acting as a key or a proof of progression rather than an ingredient. All rules are managed through a single JSON file in the /config/ folder, giving modpack creators and server admins a straightforward way to control crafting progression.
✨New in Version 1.3.0: Now with JEI & EMI Support!
Instantly see which recipes have prerequisites directly in your favorite recipe viewer's interface. An icon of the required item will appear on the recipe, and a detailed tooltip will show you the exact requirements and your current progress, so you'll always know what you need to craft.
Note: You must enable show-recipe-decorators: true in EMI's config file (config/emi.css) for the icons to appear. This is a requirement of EMI's API.
Support for REI is planned for a future update. Stay tuned!

Key Features
- Non-Consumable Requirement: The prerequisite item is only checked for, not consumed. It remains in the player's inventory after a successful craft.
- JSON-Based Configuration: Easily add or modify rules by editing the
crafting_prerequisites.json file.
- Specify Item & Count: Define the required item's ID and the minimum quantity the player must have.
- Custom In-Game Messages: Set custom notification messages to inform players why a craft has failed.
- Server-Side Logic: The mod's core functionality runs on the server, making it optional for clients.
Use Cases
- Force players to craft a storage block of a material before they can craft tools from it.
- Gate recipes behind unique items, such as boss drops or quest rewards.
- Lock recipes for a certain mod or tier until the player has acquired a key item from a previous stage.
Configuration Example (/config/crafting_prerequisites.json)
[
{
"output": "minecraft:diamond_pickaxe",
"required_item": "minecraft:diamond_block",
"count": 1,
"message": "You must craft a Diamond Block first."
}
]
This mod is ideal for controlling game progression and creating custom crafting sequences in your modpack.
评论 0
登录后参与评分
还没有评论,来抢沙发吧