(07-03-2013, 06:02 PM)xoft Wrote: Well, if you really want something to do, it'd be great if you had a look at FS #348: http://www.mc-server.org/support/index.p...ask_id=348
It calls for a per-world configuration of the mobs allowed to spawn (if any at all).
I had imagined the world.ini would contain a section like this:
This would be read into cWorld and the mob spawning would take this into account, together with the current biome (which imho is better than current dimension) when deciding what mob to spawn. Also, keep in mind that the spawning will need to be changed later, so that it takes the current light value into consideration and can spawn mobs underground;Code:[Mobs]
Enabled=1
Allow=Cow,Sheep,Pig
Ok that's pretty clear, and a bit more challenging than previous task.
As I understood, a World contains more than 1 Biome.
That mean the world.ini file cannot have the structure you provided.
At minimal, it would be :
Code:
[BiomeForest]
Allow=Cow,Sheep,Pig
[BiomeWater]
Allow=Squid
Code:
[mobs]
BiomeForestAllow=Cow,Sheep,Pig
BiomeWaterAllow=Squid
Code:
[Cow]
AllowedIn=Forest,Plains,Tundra
Or am I wrong ?
Or it is time to refactor the ini file structure