Table of Contents

Information

Prerequisites

Install

Java

sudo dnf install 'java-latest-openjdk' && sync

Set Default Java

sudo update-alternatives --config 'java'

Minecraft

rm -Rf ~/'.minecraft' && mkdir -p ~/'.minecraft' && wget -O '/tmp/Minecraft.tar.gz' 'https://launcher.mojang.com/download/Minecraft.tar.gz' && cd ~/'.minecraft' && tar -xvzf '/tmp/Minecraft.tar.gz' 'minecraft-launcher' && rm -f '/tmp/Minecraft.tar.gz' && sync

Desktop Launcher

Minecraft

mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Minecraft.desktop'
[Desktop Entry]
Name=Minecraft
Comment=Prepare for an adventure of limitless possibilities as you build, mine, battle mobs, and explore the ever-changing Minecraft landscape.
Categories=Game;Java;AdventureGame;RolePlaying
Exec='/home/CHANGEME/.minecraft/minecraft-launcher/minecraft-launcher' 
Type=Application
StartupNotify=true
Path=/home/CHANGEME/.minecraft/minecraft-launcher
Icon=/home/CHANGEME/.minecraft/minecraft-icon.png
Actions=Saves;Notes;

[Desktop Action Saves]
StartupNotify=false
Exec='/home/CHANGEME/.minecraft/save-backup.sh'
Name=Save Data Back-up

[Desktop Action Notes]
StartupNotify=false
Exec=gio open 'https://wiki.realmofespionage.xyz/games:minecraft_java'
Name=Installation Notes
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/Minecraft.desktop'

Icon

wget -O ~/'.minecraft/minecraft-icon.png' 'https://i.imgur.com/4oFBfzd.png'

Save Data Back-up Script

nano ~/'.minecraft/save-backup.sh' && chmod +x ~/'.minecraft/save-backup.sh'
#!/bin/sh

ls ~/'.minecraft/saves'
tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d)'-manual-Minecraft-Saves.tar.gz' -C ~/'.minecraft' 'saves'
sync
notify-send 'Minecraft save data has been successfully archived and placed in the Downloads folder.'

Quick Commands

Execute

Minecraft

cd ~/'.minecraft/minecraft-launcher' && ~/'.minecraft/minecraft-launcher/minecraft-launcher'

File Manager

Root

gio open ~/'.minecraft'

Saves

gio open ~/'.minecraft/saves'

Saved Games Data

Backup

ls ~/'.minecraft/saves' && tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d)'-manual-Minecraft-Saves.tar.gz' -C ~/'.minecraft' 'saves' && ls ~/'Downloads/'*'-manual-Minecraft-Saves.tar.gz'

Restore

ls ~/'Downloads/'*'-manual-Minecraft-Saves.tar.gz' && echo 'You have 10 seconds to stop this if necessary...' && sleep 10 && rm -Rf ~/'.minecraft/saves' && mkdir -p ~/'.minecraft/saves' && tar -xvzf ~/'Downloads/'*'-manual-Minecraft-Saves.tar.gz' -C ~/'.minecraft' 'saves' && sync