Introduction
9 years ago was released an article on the same subject (How to play Minecraft in Fedora - Fedora Magazine)
To quote it : """
Few games are as notorious as the block-breaking sandbox game, Minecraft. Listed as the second best-selling video game of all-time with over 107.8 million copies sold to date, Minecraft is as popular with children as it is adults. It supports many platforms, including Windows, macOS, Android, iOS, and of course, Linux. Playing Minecraft on Linux and Fedora requires a few extra steps to get working. It is possible to set it up as a desktop app to integrate with your desktop environment of choice. Whether you’re setting it up for a friend, a child, or yourself, it’s easy to get started playing Minecraft in Fedora.
"""
According to the same wikipedia article, it is now first with 350 millions sales.
This article told to use the “other distributions” official download of the game. However, there is a quicker and easier way using the official Debian package.
Tutorial
You just have to run these commands on your machine, from the Downloads folder for example (don’t forget to replace things between the angle brackets) :
sudo dnf install alien rpmrebuild # make sure alien and rpmrebuild are installed
wget https://launcher.mojang.com/download/Minecraft.deb # get the official Debian package online. If the link has changed, find the file on their website : https://minecraft.net
sudo alien -r Minecraft.deb # use alien to convert the Debian package to a rpm package usable on fedora
rpmrebuild -ep minecraft-launcher-<version>.<architecture>.rpm # modify the rpm package. if you get an error like `/usr/bin/nano: No such file or directory`, run `export EDITOR=<your favourite text editor>` beforewise
Then delete every line starting with %dir from the file that opens
%dir %attr(0755, root, root) "/usr"
%dir %attr(0755, root, root) "/usr/bin"
%attr(0755, root, root) "/usr/bin/minecraft-launcher"
%dir %attr(0755, root, root) "/usr/share"
%dir %attr(0755, root, root) "/usr/share/applications"
%attr(0644, root, root) "/usr/share/applications/minecraft-launcher.desktop"
%dir %attr(0755, root, root) "/usr/share/icons"
%dir %attr(0755, root, root) "/usr/share/icons/hicolor"
%dir %attr(0755, root, root) "/usr/share/icons/hicolor/symbolic"
%dir %attr(0755, root, root) "/usr/share/icons/hicolor/symbolic/apps"
%attr(0644, root, root) "/usr/share/icons/hicolor/symbolic/apps/minecraft-launcher.svg"
If these directories didn’t exist, create them yourself as root.
Then save and quit and type y<Enter> to confirm.
Go to the directory the programs tell you (should be ~/rpmbuild/RPMS/<architecture>/)
And finally, run
dnf install minecraft-launcher-<version>.<architecture>.rpm
Congratulations ! You now have Minecraft on your machine ! Run it with minecraft-launcher or from its icon in your app menu.
You may have to install Java OpenJDK if the dependencies resolution doesn’t work.
Free alternatives to Minecraft
This part also quotes How to play Minecraft in Fedora - Fedora Magazine.
Unfortunately, Minecraft is neither free or open source. To gain an account to use the game, you have to pay for an account. The game source code is not available publicly. If you are looking for a free and open source version of the game and don’t mind using alternate software, Minetest is an excellent option. The Minetest client (and its official server software) are already packaged in Fedora. If you’d like to give Minetest a spin, run the following command from a terminal window.
sudo dnf install minetest
You can find other versions of Minetest for Windows, macOS, countless Linux distributions, Android, and FreeBSD on their website.