Modding:Creating Recipes/ru: Difference between revisions
From Vintage Story Wiki
(Created page with "Есть более сложные вещи, которые вы можете сделать с рецептами. Это рецепт для деревянных досок,...") |
(Created page with "Вместо того, чтобы иметь рецепт для каждого типа древесины, вы можете назначить имя ингредиенту...") |
||
Line 108: | Line 108: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Вместо того, чтобы иметь рецепт для каждого типа древесины, вы можете назначить имя ингредиенту (в данном случае это <code>name: "wood"</code>), и все обозначенное <code>*</code>, позже будет заменено на выходе. Значение <code>{wood}</code> будет заменено типом используемого дерева. | |||
For example if we would have a birch log block, its code would be <code>log-birch-ud</code>, so <code>*</code> would stand for <code>birch</code>, therefore the output will be converted from <code>code: "planks-{wood}"</code> to <code>code: "planks-birch"</code>. | For example if we would have a birch log block, its code would be <code>log-birch-ud</code>, so <code>*</code> would stand for <code>birch</code>, therefore the output will be converted from <code>code: "planks-{wood}"</code> to <code>code: "planks-birch"</code>. |