sudo dnf install 'java-latest-openjdk' && sync
sudo update-alternatives --config 'java'
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
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'
wget -O ~/'.minecraft/minecraft-icon.png' 'https://i.imgur.com/4oFBfzd.png'
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.'
cd ~/'.minecraft/minecraft-launcher' && ~/'.minecraft/minecraft-launcher/minecraft-launcher'
gio open ~/'.minecraft'
gio open ~/'.minecraft/saves'
{DATE}-manual-Minecraft-Saves.tar.gz
in ~/Downloads
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'
*-manual-Minecraft-Saves.tar.gz
in ~/Downloads
saves
folder and replace it with whatever is in that tarball, after a brief 10-second periodls ~/'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