Skip to content

Instantly share code, notes, and snippets.

@manuelgu
Created May 24, 2016 19:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelgu/1b0ad70874012647151313629eceab58 to your computer and use it in GitHub Desktop.
Save manuelgu/1b0ad70874012647151313629eceab58 to your computer and use it in GitHub Desktop.
Download the most recent minecraft version (snapshot)
#!/bin/bash
# Download version file
wget -qN https://launchermeta.mojang.com/mc/game/version_manifest.json
# Beautify the file
python -m json.tool version_manifest.json > versions.json
# Get the latest snapshot release
MCVER=`sed -n -e '/\"latest\"/,/}/ s/.*\"snapshot\": \"\([^\"]*\)\".*/\1/p' < versions.json`
# Download the latest snapshot release
wget -N https://s3.amazonaws.com/Minecraft.Download/versions/$MCVER/minecraft_server.$MCVER.jar
# Delete temp files
rm versions.json
rm version_manifest.json
@Pythonic-Rainbow
Copy link

This actually helped me because I need the links to make my customized launchers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment