Modding:Creating Recipes: Difference between revisions

From Vintage Story Wiki
Adds a hint to where recipes can be found and updates pattern syntax
No edit summary
(Adds a hint to where recipes can be found and updates pattern syntax)
Line 9: Line 9:


<!--T:3-->
<!--T:3-->
Let's create a recipe for our wand, which we added in [[Basic Item|basic items]] tutorial.  
Let's create a recipe for our wand, which we added in [[Basic Item|basic items]] tutorial. Other recipes can be found in <code>assets/survival/recipes/</code>


=== Ingredient Pattern === <!--T:4-->
=== Ingredient Pattern === <!--T:4-->
Line 22: Line 22:
which would look like this:
which would look like this:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
ingredientPattern: "P,S,S",
ingredientPattern: "P S S",
width: 1,
width: 1,
height: 3,
height: 3,
Line 28: Line 28:


<!--T:8-->
<!--T:8-->
<code>P</code> and <code>S</code> are identifiers which will be defined later. Every row is separated with a comma, while an empty cell is marked with an underscore <code>_</code>. The <code>width</code> of this recipe is <code>1</code> and it is <code>3</code> rows high. Don't put spaces between the cells for example <code>_ P _</code> is 5 not 3 cells.
<code>P</code> and <code>S</code> are identifiers which will be defined later. Every row is separated with a space, while an empty cell is marked with an underscore <code>_</code>. The <code>width</code> of this recipe is <code>1</code> and it is <code>3</code> rows high.


=== Ingredients === <!--T:9-->
=== Ingredients === <!--T:9-->
Line 100: Line 100:
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
{
{
ingredientPattern: "P,S,S",
ingredientPattern: "P S S",
width: 1,
width: 1,
height: 3,
height: 3,
editor
72

edits