Modding:Content Tutorial Simple Worldgen: Difference between revisions

From Vintage Story Wiki
m
no edit summary
mNo edit summary
mNo edit summary
Line 17: Line 17:
* Mod Setup & Folder Structure
* Mod Setup & Folder Structure
* Incomplete 'loosesticks' blockpatches file
* Incomplete 'loosesticks' blockpatches file
* Incomplete 'bones' blockpatches file
* Incomplete 'sand' deposits file
* Incomplete 'sand' deposits file


Line 34: Line 33:


* ''assets/worldgen/blockpatches/loosesticks.json''
* ''assets/worldgen/blockpatches/loosesticks.json''
* ''assets/worldgen/blockpatches/bones.json''
* ''assets/worldgen/deposits/sand.json''
* ''assets/worldgen/deposits/sand.json''


Line 78: Line 76:
"chance": 3
"chance": 3
</syntaxhighlight>This value effects how the chance of this rule spawning per chunk. The chance can be a decimal value. For example, a chance of 0.5 means there is a 50% chance per chunk that the blockpatch will be generated. A chance of 3 means that there will be 3 instances of this generating per chunk.
</syntaxhighlight>This value effects how the chance of this rule spawning per chunk. The chance can be a decimal value. For example, a chance of 0.5 means there is a 50% chance per chunk that the blockpatch will be generated. A chance of 3 means that there will be 3 instances of this generating per chunk.
If you run the game with your mod, you will be able to see sticks generating most places in the surface. If you want to increase the spawn rate, increase the value of the ''chance'' property.
=== Underground Bones ===
There's more to be done with blockpatches. Create a new file in the blockpatches folder called "''bones.json''" and fill it with this code:<syntaxhighlight lang="json">
[
{
"comment": "Lots of bones and carcasses underground",
}
]
</syntaxhighlight>


== Conclusion ==
== Conclusion ==
Confirmedusers
637

edits