The consistency of semen can change based on a variety of factors including, diet, exercise and frequency of ejaculation. The thick semen may be increased proteins (think eggs) which can be simply from eating high protein foods. It is generally nothing to worry about unless there is a foul smell or burning.
but why is that happening?