Merge pull request #2567 from cuberite/cave_spider
Added cave spider to MobSpawner
This commit is contained in:
commit
0ab0a2f146
@ -237,6 +237,17 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R
|
|||||||
return CanSpawn && HasFloor && (SkyLight <= 7) && (BlockLight <= 7);
|
return CanSpawn && HasFloor && (SkyLight <= 7) && (BlockLight <= 7);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case mtCaveSpider:
|
||||||
|
{
|
||||||
|
return (
|
||||||
|
(TargetBlock == E_BLOCK_AIR) &&
|
||||||
|
(!cBlockInfo::IsTransparent(BlockBelow)) &&
|
||||||
|
(SkyLight <= 7) &&
|
||||||
|
(BlockLight <= 7) &&
|
||||||
|
(Random.NextInt(2) == 0)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
case mtCreeper:
|
case mtCreeper:
|
||||||
case mtSkeleton:
|
case mtSkeleton:
|
||||||
case mtZombie:
|
case mtZombie:
|
||||||
|
Loading…
Reference in New Issue
Block a user