You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new cTerrainFinisherGen descendant that populates the top of the generated chunks with animals. The animals should be biome-dependant, should spawn only in a (configurable) percentage of chunks and should spawn in pack of multiples.
Use a simple random relative-coord generator for the pack's center inside the chunk, and random offsets for individual animals in the pack, setting each animal's height to the top of the heightmap.
The text was updated successfully, but these errors were encountered:
I'm trying to implement this in src/Generator/FinishGen and I am having trouble getting the world to spawn in mobs. I can post progress so far, but I'm wondering if you have any thoughts to guide me in the right direction. It would be much appreciated
You should make a finisher that adds entities to the cChunkDesc's list of entities, nothing more. If that doesn't make the animals spawn, it's a bug elsewhere and will need to get addressed.
Create a new
cTerrainFinisherGen
descendant that populates the top of the generated chunks with animals. The animals should be biome-dependant, should spawn only in a (configurable) percentage of chunks and should spawn in pack of multiples.Use a simple random relative-coord generator for the pack's center inside the chunk, and random offsets for individual animals in the pack, setting each animal's height to the top of the heightmap.
The text was updated successfully, but these errors were encountered: