Great job guys !!
#10
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:
Code:
[Mobs]
Enabled=1
Allow=Cow,Sheep,Pig
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; but don't go there yet, leave this to be implemented at a later time. Especially the light value will be a challenge, since it will require some cooperation with the lighting engine thread, with lots of deadlock potential Smile

I envision you'd create a simple framework for this that can translate between "cow" and E_ENTITY_TYPE_COW and will provide a unified entrypoint to check "is this entity type allowed here?", with "here" being for now a biome; later we will expand it to take light value, block contents and entity size into account.
Reply
Thanks given by:


Messages In This Thread
Great job guys !! - by mgueydan - 07-01-2013, 03:55 AM
RE: Great job guys !! - by xoft - 07-01-2013, 04:51 AM
RE: Great job guys !! - by FakeTruth - 07-01-2013, 06:16 AM
RE: Great job guys !! - by mgueydan - 07-03-2013, 04:25 AM
RE: Great job guys !! - by tonibm19 - 07-03-2013, 04:34 AM
RE: Great job guys !! - by mgueydan - 07-03-2013, 05:54 AM
RE: Great job guys !! - by tonibm19 - 07-03-2013, 06:13 AM
RE: Great job guys !! - by mgueydan - 07-03-2013, 06:18 AM
RE: Great job guys !! - by xoft - 07-03-2013, 04:39 PM
RE: Great job guys !! - by mgueydan - 07-03-2013, 09:58 PM
RE: Great job guys !! - by xoft - 07-03-2013, 06:02 PM
RE: Great job guys !! - by mgueydan - 07-04-2013, 12:05 AM
RE: Great job guys !! - by mgueydan - 07-03-2013, 11:35 PM
RE: Great job guys !! - by xoft - 07-03-2013, 11:40 PM
RE: Great job guys !! - by xoft - 07-04-2013, 01:27 AM
RE: Great job guys !! - by mgueydan - 07-04-2013, 01:49 AM
RE: Great job guys !! - by xoft - 07-04-2013, 02:00 AM
RE: Great job guys !! - by mgueydan - 07-04-2013, 02:58 AM
RE: Great job guys !! - by xoft - 07-04-2013, 05:44 AM
RE: Great job guys !! - by mgueydan - 07-04-2013, 07:00 AM
RE: Great job guys !! - by mgueydan - 07-04-2013, 06:09 PM



Users browsing this thread: 1 Guest(s)