Modding:WorldGen API: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
Line 411: Line 411:
</syntaxhighlight>
</syntaxhighlight>
There are some improvements that could be made to this algorithm. I list them in the Exercises below. However, now you should be able to run the code and find treasure chests in your world!!
There are some improvements that could be made to this algorithm. I list them in the Exercises below. However, now you should be able to run the code and find treasure chests in your world!!
'''Summary'''
You should now have an idea of how to register commands and place blocks during world gen. There's plenty more to explore. If you want to take this code further please see the suggested exercises below.


== Excercises ==
== Excercises ==
256

edits