Skip to content

A small tool for resource and data pack creators to extract contents from Minecraft's jar files and assets

License

Notifications You must be signed in to change notification settings

JKerboeuf/Minecraft-Resource-Extractor

Repository files navigation

MRE Banner

Minecraft Resource Extractor

The Minecraft Resource Extractor (or MRE for short) is a small tool for data packs and resource packs creators.
With this tool, you can easily extract all the textures, sounds, and data files (achievements, crafting recipes, loot tables and others) from any minecraft.jar version or mod you want.

Windows Requirements

Java JDK, used to extract the content of .jar files

Linux Requirements

  • Java JDK (openjdk), used to extract the content of .jar files
  • jq, a command line json parser.

You can install these with this one simple command :

sudo apt-get update && sudo apt-get install openjdk-11-jdk-headless jq

How to use on Windows

  • Check and install the requirements above if needed
  • Download the latest Windows release here, it is found below "Assets" and should be named "mre-for-windows.zip"
  • Extract the folder inside of the donwloaded .zip file and launch MinecraftResourceExtractor.exe
  • Follow the instructions given and extract whatever you want !
  • All extracted files go to the folder "mre-output" in the same folder as the .exe

How to use on Linux

  • Check and install the requirements above if needed
  • Download the latest Linux release here, it is found below "Assets" and should be named "mre-for-linux.zip"
  • Extract the content of the donwloaded .zip file and launch the mre.sh with the path to your .minecraft or to a .jar file
  • Follow the instructions given and extract whatever you want !
  • All extracted files go to the folder "mre-output" in the same folder as the script

Examples

./mre.sh "/mnt/c/users/YOURUSER/AppData/Roaming/.minecraft"
./mre.sh "/mnt/c/Users/YOURUSER/AppData/Roaming/.minecraft/mods/SomeModFile.jar"

What to extract ?

There is 3 types of files you can extract using this tool :

version.jar -> assets

Useful for resource pack creators, this part contains all textures and models.

version.jar -> data

Useful for data pack creators, this part contains all data files (json files), these include loot tables, crafting recipes, advancements, world generation and more.

Assets

Useful for resource pack creators, these files are the most annoying to treat by hand as their names are "encoded", they mostly are sound, music and language files but they also include the Programmer Art resource pack and some more "default" files I'll let you explore.

Screenshot

screenshot of MRE