Modding:Content Tutorial Simple Worldgen: Difference between revisions

From Vintage Story Wiki
mNo edit summary
mNo edit summary
 
Line 152: Line 152:


=== Deposits ===
=== Deposits ===
Deposits are a little more complicated than blockpatches.
Deposits are a little more complicated than blockpatches. This type of world generation is used to ''replace'' certain blocks with other blocks. Blocks such as ores, clay/peat, and cracked stone all spawn using a deposit generation. Deposits must be defined in the ''deposits'' folder in ''worldgen''. Open the tutorial file at ''worldgen/deposits/sand.json'' and you'll see this code sample:<syntaxhighlight lang="json">
[
  {
    "code": "sand",
   
  }
]
</syntaxhighlight>


== Conclusion ==
== Conclusion ==