Minecraft is a fantastic game, but it might have some issues in Linux.
Issues we are gonna cover
* stuttering * game is under-preforming * mouse side-buttons acts weird and freeze game
How to solve!
First, I strongly recommand using MultiMC, as it is easy to customize with.
You might want to use Oracle Java instead of the Open-JDK. To install this, you can either get the .rmp file and use alien on it, or you can use the .tar.gz archive, and follow this tutorial. after you have it installed, change your Java executable to Oracle Java we just installed. In MultiMC, go to your settings -> Java, and use "auto-detect". If you want to apply it to a specific instance, use "edit instance" -> settings, and auto-detect. Keep in mind, different versions of Minecraft need different versions of java. Minecraft versions 1.8-1.12.2 are better with Java8, and might not work under another version, whereas Minecraft 1.13+ use Java11.
Second, you can use Optifine.It is an unofficial Forge mod, which allows for better performance.
Mess with your video setting. They can HIGHLY affect your performance, and if you use optifine, it tells how if a setting affects performance and what it does when you hover on it.
Add Java arguments. They can highly affect performance. In MultiMC, simply go to Settings -> Java -> JVM arguments, and use the following:
-Dsun.java3d.opengl=true -XX:+AggressiveOpts -XX:+DisableExplicitGC -XX:+UseAdaptiveGCBoundary -XX:MaxGCPauseMillis=500 -XX:SurvivorRatio=16 -XX:+UseParallelGC -XX:UseSSE=3 -XX:ParallelGCThreads=<AMOUNT OF CPU CORES YOU HAVE> -client -XX:-UseAdaptiveSizePolicy
Obviously replace "AMOUNT OF CPU CORES YOU HAVE>" with, well, the amount of CPU cores you have.
In addition, you want to allocate more ram to minecraft. In MultiMC, simply go to settings -> Java, and change the max amount of ram. 2048MB+ is recommended AT LEAST.
Last but not least, give Java higher task priority using the following command: sudo renice -20 -p $(pidof java) or if you use fish instead of bash: sudo renice -20 -p (pidof java) Use after minecraft is already open.
This one is very simple. Use minecraft on full-screen mode. This can be done in the minecraft video settings. If this doesn't work, try getting higher performance as specified above. If that doesn't work, use solution for the next problem.
Mouse (Razer(?)) Side-Buttons Freeze Game
This one is also rather simple. Use Wayland. To use it on your DE, use this part of the Wayland article.