11-22-2012, 11:52 PM
Entities are not stored in the world, that's right.
If you want to store them, you need to modify WorldStorage/WSSAnvil.h + .cpp to include entities when saving world, and then loading them back again from the files.
If you want to generate mobs (animals) with the world, I'd suggest making a new cFinishGen descendant for that (start in Generating/FinishGen.h + .cpp; but probably put it into a new file, it'll be a larger one). Note that most generator-related stuff in MCServer is quite configurable, so you might want to make yours configurable as well (amount of mobs in one group, number of groups, groups frequency, mob type freqencies... )
If you want to store them, you need to modify WorldStorage/WSSAnvil.h + .cpp to include entities when saving world, and then loading them back again from the files.
If you want to generate mobs (animals) with the world, I'd suggest making a new cFinishGen descendant for that (start in Generating/FinishGen.h + .cpp; but probably put it into a new file, it'll be a larger one). Note that most generator-related stuff in MCServer is quite configurable, so you might want to make yours configurable as well (amount of mobs in one group, number of groups, groups frequency, mob type freqencies... )