zh_cn:tutorial:recipes
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
zh_cn:tutorial:recipes [2019/12/18 11:37] – created lightcolour | zh_cn:tutorial:recipes [2024/08/23 13:21] (current) – solidblock | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ===== Adding a basic crafting recipe | + | ===== 添加基本的合成配方 |
- | Make sure you [[tutorial: | + | 阅读本教程之前,请确保[[zh_cn:tutorial: |
- | + | ||
- | So far, our item is obtainable through the creative menu or commands. | + | |
- | To make it available to survival players, we'll add a crafting recipe for the item. | + | |
- | Create a file named '' | + | 到目前为止,我们的物品可以通过创造模式菜单或者命令获得。要让它能够在生存模式获得到,我们需要为物品添加合成配方。 |
- | Here's an example | + | |
- | <code javascript resources/ | + | 在 '' |
+ | |||
+ | 一般来说配方文件直接用其输出物品命名,但也可以是任何名称。这是我们制作 | ||
+ | |||
+ | <code javascript resources/ | ||
{ | { | ||
" | " | ||
Line 25: | Line 26: | ||
}, | }, | ||
" | " | ||
- | "item": " | + | "id": " |
" | " | ||
} | } | ||
} | } | ||
</ | </ | ||
- | Breakdown of the recipe: | + | 配方内容解析: |
- | * **type**: This is a shaped crafting recipe. | + | * **type**:这是个有序合成配方。 |
- | * **result**: This is a crafting recipe for 4 '' | + | * **result**:这是合成4个 '' |
- | * **pattern**: A pattern that represents the crafting recipe. Each letter represents one item. An empty space means that no item is required in that slot. What each letter represents is defined in **key**. | + | * **pattern**:代表合成配方的图案。每个字母代表一个物品。空格表示该槽位没有物品。每个字母代表的物品在 |
- | * **key**: What each letter in the pattern represents. | + | * **key**:每个字母代表的物品。'' |
- | In total, the crafting recipe would look like this: | + | * **category**:这个配方在解锁后在配方书中显示的分类。 |
- | ^ Recipe for 4 fabric_item | + | 总之,该合成配方应该是这样的: |
- | |Any Log|Any Log|Any Log| | + | ^ |
- | |Any Log|Redstone|Nothing| | + | |任何原木|任何原木|任何原木| |
- | |Any Log|Any Log|Any Log| | + | |任何原木|红石|空白| |
- | For more information about the format of basic recipes, see [[https:// | + | |任何原木|任何原木|任何原木| |
+ | 关于基本配方格式的更多信息,参考[[https://zh.minecraft.wiki/配方|Minecraft Wiki 的配方页面]]。 | ||
+ | |||
+ | 配方也可以在运行时动态生成,更多信息可参考[[dynamic_recipe_generation|动态配方生成教程]]。 | ||
+ | |||
+ | ===== 配方类型的更多信息 ===== | ||
+ | '' | ||
- | ===== Adding a custom crafting recipe ===== | + | 创建自己的配方类型:[[recipe_types_introduction|配方类型介绍]] |
- | The '' | + | |
zh_cn/tutorial/recipes.1576669059.txt.gz · Last modified: 2019/12/18 11:37 by lightcolour