rmheuer / McAssetExtractor

A tool to download and extract assets from Minecraft

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

McAssetExtractor

About

McAssetExtractor is a tool to extract assets from Minecraft by downloading from Mojang's API. It uses GSON to parse the API's JSON responses.

The wiki.vg page on Game files is a helpful resource to understand how this works.

The primary goal of McAssetExtractor is to provide a convenient way to obtain Minecraft's assets while avoiding copyright issues. By providing a tool to download assets from Mojang, we avoid any potential copyright issues from distributing Minecraft's assets.

Building

Make sure you have Apache Maven installed, then run mvn package to build. The output JAR will be found in the target/ directory.

Running

McAssetExtractor requires Java 1.8 or higher. Use java -jar McAssetExtractor-1.0-jar-with-dependencies.jar <version> <destination> to extract assets, replacing <version> with your desired version, and <destination> with a path to the destination directory. You can use the latest release or snapshot by setting the version to latest or latest-snapshot, respectively.

This should give an output similar to the following:

Downloading assets for version 1.19
Extracting assets from client JAR
...
Downloading assets from launcher meta
...

Summary:
Extracted XXX assets from JAR
Extracted XXX assets from launcher meta

If any errors are present, make sure you are connected to the internet, and that you have specified a valid version and output directory.

About

A tool to download and extract assets from Minecraft

License:MIT License


Languages

Language:Java 100.0%