Download the most recent minecraft version (snapshot)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
After try and error I figure out I can download the client version for using it with overviewer just modifying the url and getting not the snapshot (I think) but the release version.
`#!/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/.*\"release\": \"\([^\"]*\)\".*/\1/p' < versions.json
Download the latest snapshot release
wget -N https://s3.amazonaws.com/Minecraft.Download/versions/$MCVER/$MCVER.jar
Delete temp files
rm versions.json
rm version_manifest.json`