Modding:WorldGen Configuration: Difference between revisions

From Vintage Story Wiki
m
(6 intermediate revisions by 3 users not shown)
Line 3: Line 3:
Landforms define the shape of the terrain. Let's take a look at an existing landform.
Landforms define the shape of the terrain. Let's take a look at an existing landform.


<pre>
<syntaxhighlight lang="json">
{
{
code: "landforms",
code: "landforms",
Line 21: Line 21:
]
]
}
}
</pre>
</syntaxhighlight >




Line 55: Line 55:
And below a certain y-position the density is always 1. If we would set that to a lower value, we would get very deep lakes.
And below a certain y-position the density is always 1. If we would set that to a lower value, we would get very deep lakes.


The amount of configurable Y-Thresholds is arbitrary you may use any quantity, just make sure both lists have the same amount of elements. It wouldn't make sense however to configure more than 256 thresholds for a world height of 256.
The amount of configurable Y-Thresholds is arbitrary you may use any quantity, just make sure both lists have the same amount of elements. However, it wouldn't make sense to configure more than 256 thresholds for a world height of 256 blocks.
 
You can build such graph using the new [http://tyron.at/vs/landformcreator.html world gen tool]


=== Testing Landforms ===
=== Testing Landforms ===
Line 64: Line 66:
<li><code>/wgen del 10</code> - delete all chunks with a radius 10 chunks (Warning: Cannot be undone!)</li>
<li><code>/wgen del 10</code> - delete all chunks with a radius 10 chunks (Warning: Cannot be undone!)</li>
<li><code>/wgen regen 5</code> - Reloads the landforms.json then deletes and regenerates all chunks with a radius of 5 chunks</li>
<li><code>/wgen regen 5</code> - Reloads the landforms.json then deletes and regenerates all chunks with a radius of 5 chunks</li>
</ol>
{{Navbox/modding|Vintage Story}}
Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits