Why is my cpu overheating?

I literally just built my pc 2 days ago and when i'm playing minecraft on full settings with shaders mod on the cpu tempature goes up to 81 celsius. Keep in mind that my pc has no case. Its just built on my desk with nothing blocking the fan and no dust

Is fan working?
Try factoring resetting bios settings.

Did you use thermal paste? And add enough?

Make sure the cooler is mounted properly to the motherboard. It doesn't have to be extremely tight

Is the processor one with an embedded GPU in it? Are you playing off of this GPU, or through a discrete GPU? If you're playing through the embedded GPU, then it's likely the embedded GPU is responsible for the temperature.

Also, it's important to close the case up. The closed case creates a venturi effect which increases the flow of the air through the case, thus increasing heat transfer.