Cuberite Forum
Great job guys !! - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Development (https://forum.cuberite.org/forum-13.html)
+--- Thread: Great job guys !! (/thread-1170.html)

Pages: 1 2 3


RE: Great job guys !! - mgueydan - 07-04-2013

Being more and more specific.

I read that :
- mobs spawn close to players
- mobs far from players doesn't move
- mobs really far from player have chance to despawn
- mobs really really far from player automatically despawn

I suggest that it would be more accurate to manage thoses 4 actions in a Row.
Right now :
- Mobs Tick() are called from Chunks
- Mob spawn is called from World.
- I'm not sure if Mob despawn is called

Applying the above rules would induce two or three different Player-to-mob distance calculation is a single tick.