My CPU going to 100% after opening a mineecraft

Can anyone help me?

My CPU is at 6% with only the browser open. But after I open Minecraft, it goes up to 100% CPU.

How 2 fix it?