Only spawn nether mobs in nether biome.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@613 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
6f70fb2845
commit
6327d63e25
@ -746,27 +746,33 @@ void cWorld::TickSpawnMobs(float a_Dt)
|
||||
int Height = GetHeight( (int)SpawnPos.x, (int)SpawnPos.z );
|
||||
|
||||
if (m_WorldTime >= 12000 + 1000)
|
||||
{
|
||||
if (GetBiomeAt(SpawnPos.x, SpawnPos.z) == biHell) // Spawn nether mobs
|
||||
{
|
||||
if (nightRand == 1 && GetBiomeAt(SpawnPos.x, SpawnPos.z) == biHell)
|
||||
Monster = new cZombie();
|
||||
else if (nightRand == 5)
|
||||
Monster = new cGhast();
|
||||
else if (nightRand == 6)
|
||||
Monster = new cZombiepigman();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (nightRand == 0) //random percent to spawn for night
|
||||
Monster = new cSpider();
|
||||
else if (nightRand == 1)
|
||||
Monster = new cZombie();
|
||||
else if (nightRand == 2)
|
||||
Monster = new cEnderman();
|
||||
else if (nightRand == 3)
|
||||
Monster = new cCreeper();
|
||||
else if (nightRand == 4)
|
||||
Monster = new cCavespider();
|
||||
else if (nightRand == 5)
|
||||
Monster = new cGhast();
|
||||
else if (nightRand == 6)
|
||||
Monster = new cZombiepigman();
|
||||
else if (nightRand == 7)
|
||||
Monster = new cSlime();
|
||||
else if (nightRand == 8)
|
||||
Monster = new cSilverfish();
|
||||
else if (nightRand == 9)
|
||||
Monster = new cSkeleton();
|
||||
}
|
||||
//end random percent to spawn for night
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user