Merge pull request #2567 from cuberite/cave_spider
Added cave spider to MobSpawner
This commit is contained in:
commit
0ab0a2f146
@ -236,6 +236,17 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R
|
||||
}
|
||||
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 mtSkeleton:
|
||||
|
Loading…
Reference in New Issue
Block a user