/// <summary> /// Checks if the entity's current position is a valid location to spawn this entity. /// </summary> public override bool GetCanSpawnHere() { Chunk chunk = WorldObj.GetChunkFromBlockCoords(MathHelper2.Floor_double(PosX), MathHelper2.Floor_double(PosZ)); if ((GetSlimeSize() == 1 || WorldObj.DifficultySetting > 0) && Rand.Next(10) == 0 && chunk.GetRandomWithSeed(0x3ad8025fL).Next(10) == 0 && PosY < 40D) { return(base.GetCanSpawnHere()); } else { return(false); } }