-
Notifications
You must be signed in to change notification settings - Fork 14
5. Worldgenerator Specifications
Important note: Make sure you read and understood the World Generator Tutorial before reading on.
You want to write your own worldgenerator or make an existing one compatible?
Read here about what it takes to make it function properly.
As the module needs to save some of the information generated during world generation, it has some specific demands on an world generator. The most important one is a properly working RegionEntityProvider which spawns region entities to save parts of the facets generated. As you can see, this provider depends on several other providers, namely:
- RoughnessFacetProvider
- ResourceFacetProvider
- TreeFacetProvider
- SiteFacetProvider
The most important thing to note here is that the TreeFacetProvider is accustomed to this module so make sure you import the right one. This is needed to remove trees later on safely.
If you want to write your own rasterizers make sure that they are subtypes of the CompatibleRasterizer and that you set blocks with the methods therein if you want the blocks to be saved by the region entities.