Modding:Creating Recipes: Difference between revisions

From Vintage Story Wiki
m
Grammar and stuff
No edit summary
m (Grammar and stuff)
Line 19: Line 19:
</syntaxhighlight>
</syntaxhighlight>


<code>P</code> and <code>S</code> are identifiers which will be defined later. Every row is separated with a tab, while an empty cell is mark with an underscore <code>_</code>. The <code>width</code> of this recipe is <code>1</code> and it is <code>3</code> rows high.
<code>P</code> and <code>S</code> are identifiers which will be defined later. Every row is separated with a tab, 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 ===
=== Ingredients ===


All we need to do now, is to define the identifiers we have used before. In our example <code>P</code> stands for a copper pickaxe and <code>S</code> for an ordinary stick.
All we need to do now is to define the identifiers we have used before. In our example <code>P</code> stands for a copper pickaxe and <code>S</code> for an ordinary stick.


<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
Line 68: Line 68:
</syntaxhighlight>
</syntaxhighlight>


Theoretically we could add the <code>quantity</code> property here as well.
Theoretically, we could add the <code>quantity</code> property here as well.


=== Distributing ===
=== Distributing ===


This is how our final recipe looks like:
This is what our final recipe looks like:


<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
14

edits