Modding:Basic Modding Examples: Difference between revisions

From Vintage Story Wiki
Updates worldgen example to current version
(Updates wolf example to current code)
(Updates worldgen example to current version)
Line 89: Line 89:
== Playing around with world generation ==
== Playing around with world generation ==


Inside the assets folder, navigate to worldgen/terrain/standard. Copy aside the landforms.json so you have a backup, then open the landforms.json. Remove everything in this file and paste in the following text:
Inside the assets folder, navigate to <code>assets/survival/worldgen/</code>. Copy aside the landforms.json so you have a backup, then open the landforms.json. Remove everything in this file and paste in the following text:
<pre>
<pre>
{
{
Line 99: Line 99:
"comment": "humongous mountains with caverns in them",
"comment": "humongous mountains with caverns in them",
"hexcolor": "#5BC184",
"hexcolor": "#5BC184",
"weight": 2,
"weight": 1.5,
"useClimateMap": false,
"useClimateMap": false,
"terrainOctaves":          [0, 0, 0, 0, 1,  1, 1, 1, 0.6, 0.2],
"terrainOctaves":          [0, 0, 0, 1,  1, 1, 1, 0.6, 0.15],
"terrainOctaveThresholds": [0, 0, 0, 0, 0.5, 0, 0,  0,  0, 0],
"terrainOctaveThresholds": [0, 0, 0, 0.5, 0, 0,  0,  0, 0],
"terrainYKeyPositions":    [0,  0.33, 0.37, 0.42, 0.43, 0.5, 0.6, 0.7, 0.9, 0.97, 1],
"terrainYKeyPositions":    [0.000, 0.330, 0.370, 0.420, 0.430, 0.500, 0.600, 0.700, 1.000],
"terrainYKeyThresholds":  [1,   1, 0.87, 0.84, 0.7, 0.94, 1, 1, 0.1, 0.05, 0]
"terrainYKeyThresholds":  [1.000, 1.000, 0.870, 0.840, 0.700, 0.940, 1.000, 1.000, 0.000]
},
},
]
]
editor
72

edits