Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
@gabrielpc1190
Copy link

gabrielpc1190 commented Oct 23, 2017

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`

@Pythonic-Rainbow
Copy link

Pythonic-Rainbow commented Feb 20, 2018

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