There are two "editions" of Minecraft, Java and Bedrock. The two seem to be completely isolated, that is you can not connect a Java client to a Bedrock server and vice-versa. # Java Edition ## Server ### Gentoo The ```bash emerge -av games-server/minecraft-server # Add to default rc-service if you use OpenRC rc-service add default minecraft-server ``` ## Client ### Gentoo There are two versions available in portage, a current edition and a legacy version, these are slotted and so can be installed at the same time. Confusingly the legacy version has a higher version number than the current edition. ```bash # Install legacy emerge -av =games-action/minecraft-launcher-1.6.93 # ...otherwise emerge -av games-action/minecraft-launcher ``` ### Android # Bedrock Edition ## Server ### Linux Download the server from [here]() and save it to a dedicated directory, I use `~/tmp/minecraft/`, then unzip the archive. ```bash cd ~/tmp/minecraft unzip bedrock-server-1.19.22.01.zip ``` **Tip** If you are starting the server on a system that will be running for sometime then you can (and probably should) start a [[linux:tmux|tmux]] session and start the server under that. That way you can detach from the tmux session from your terminal and it continues running in the background and you don't need to worry about accidentally closing your terminal or logging out of the desktop environment, although obviously these are _not_ persistent between reboots and you have to start the service on reboot (see notes below on running this automatically). Included in the extracted files is the `bedrock_server_how_to.html` file which you should read, it tells you everything you need to know. Configuration options are set in the `server.properties` file which is heavily commented, read this if you want to change settings (a sensible thing to change is the port on which connections are made, but remember what you set it to as your client will need this number). Officially you start the server from within this directory using... ```bash LD_LIBRARY_PATH=. ./bedrock_server ``` I found I didn't need the prefix of `LD_LIBRARY_PATH=.` but your mileage may vary depending on your system. **TODO** Notes on starting the server automatically on logging into a desktop environment session. ## Client ### Linux #### Manual Download the [Bedrock Linux Server](https://www.minecraft.net/en-us/download/server/bedrock) ```bash mkdir ~/tmp/minecraft && cd ~/tmp/minecraft wget https://mcpelauncher.mrarm.io/appimage/Minecraft_Bedrock_Launcher.AppImage -O Minecraft_Bedrock_Launcher.AppImage ``` **TODO** Finish off #### Flatpak [Flatpak](https://flatpak.org) is a system of packaging programs and "apps" (which are just programs) for various Linux systems. It is available across a range of GNU/Linux distributions via package managers, see links from [here](https://flatpak.org/setup/) ```bash # Gentoo emerge -av sys-apps/flatpak # Arch pacman -Syu flatpak # OSX/Homebrew homebrew --update && homebrew install flatpak # Raspberry Pi OS apt install flatpak ``` Once installed you must add a Flathub repository and then install the `mcpelauncher` (see instructions [here](https://mcpelauncher.readthedocs.io/en/latest/getting_started.html))... ```bash flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak install flathub io.mrarm.mcpelauncher ``` To run the client from the command line... ```bash flatpak run io.mrarm.mcpelauncher ``` If you reboot your system on login there should (maybe?) be an icon under your Games menu. On running you will be asked to login to a Google Account. In order for this to work you MUST have purchased [Minecraft Pocket Edition](https://play.google.com/store/apps/details?id=com.mojang.minecraftpe) (£6.49 at time of writing) with the Google Account you are logging in with. ### Android Just purchase [Minecraft Pocket Edition](https://play.google.com/store/apps/details?id=com.mojang.minecraftpe). If you have an Amazon Fire device (which are still running Android just Amazon's bastardised version) then you can still [purchase](https://www.minecraft.net/en-us/store/minecraft-kindle-fire) a version. # Links ## Java Edition ## Bedrock * [Minecraft Bedrock Server Download | Minecraft](https://www.minecraft.net/en-us/download/server/bedrock) * [TheRemote/MinecraftBedrockServer: Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup](https://github.com/TheRemote/MinecraftBedrockServer)