Generates a Git repository of decompiled Minecraft, starting from 1.14.4. For personal use only. Do not share or upload the resulting repository.
To get started, execute ./gradlew run
from the command line, advanced usage (./gradlew run --args="[Options]"
) is shown below.
By default, integrated assets (e.g. models), external assets (e.g. other languages) and the integrated datapacks are included in the generated repository.
This can be changed by adding the --no-assets
, --no-external-assets
and --no-datapack
parameters.
Artifacts are stored in the current working directory:
- Metadata, mappings, assets and other temporary files go into
artifact-store
. - The generated Git repository with MC's source code goes into
minecraft-repo
,minecraft-repo-<version>
orminecraft-repo-min-<version>
. - The decompiled code is stored in separate JARs inside the
artifact-store/decompiled
directory, to not write thousands of files directly onto the file system - To decompile versions not provided by Mojang directly, put the meta files into
extra-versions
and they will be picked up
If only a specific version should be decompiled and versioned or a version range should be decompiled, provide the --only-version=<version>
or --min-version=<version>
parameters. <version>
should be a (human-readable) version name, e.g. 23w14a
or 1.20.1
.
To exclude only a specific version (or multiple versions) use --exclude-version
.
To disabled versioning entirely (and only decompile), specify --no-repo
.
To disable special versions (e.g. april fools or combat snapshots), specify --skip-nonlinear
.
To disable either snapshots or stable releases, use either --only-stable
or --only-snapshot
.
To use other mappings than mojmaps, specify --mappings=<mapping>
. Supported mappings are mojmap
, mojmap_parchment
, fabric_intermediary
and yarn
.
Fallback mappings can be used with --fallback-mappings
. For example mojmap
could be used as a fallback to a mojmap_parchment
mapping, as not every version of minecraft is available.
If a specific target directory should be used, instead of the default generated repository name, use --override-repo-target
.
Powered by:
- Vineflower
- Fabric Loader
- Mapping-IO
- Tiny Remapper
- Mojang's generous mapping files (Mojmap)
- Loom
- Yarn
- Fabric Intermediary Mappings
- Parchment
Usage: gradlew run --args="[Options]"
Options:
--exclude-version[=<version>[,<version>]...]
Specify version(s) to exclude from decompilation.
The exclusion info will be added to the
repository name. The normal repository will not
be touched.
--fallback-mappings[=<mapping>[,<mapping>]...]
If the primary mapping fails, these mappings are
tried (in given order). By default none is tried
as a fallback. Possible values are: mojmap,
fabric_intermediary, yarn, mojmap_parchment
-h, --help Displays this help screen
--mappings=<mapping> Specifies the mappings used to decompile the
source tree. Mojmaps are selected by default.
Possible values are: mojmap,
fabric_intermediary, yarn, mojmap_parchment
--min-version=<version>
Specify the min. version to decompile. Each
following version will be decompiled afterwards,
non-linear versions are still committed to
separate branches. The repository will be stored
in minecraft-repo-min-<version>. The normal
repository will not be touched.
--no-assets Disables assets versioning (includes external
assets)
--no-datapack Disables data (integrated datapack) versioning
--no-external-assets Disables assets versioning for assets not included
inside "minecraft".jar (e.g. other languages).
Has no effect if --no-assets is specified
--no-repo Prevents the creation/modification of a repository
for versioning, only decompiles the provided (or
all) version(s)
--no-verify Disables checksum verification
--only-snapshot Only decompiles snapshots (includes pending and
non-linear, if not otherwise specified).
--only-stable Only decompiles stable releases.
--only-version[=<version>[,<version>]...]
Specify the only version(s) to decompile. The
repository be stored in
minecraft-repo-<version>-<version>-.... The
normal repository will not be touched.
--only-version will take precedence over
--min-version.
--override-repo-target=<path>
Changes the location of the target repository, as
repo names may get quite long and unintuitive.
If not used carefully, this can lead to
repositories with unwanted mixed mappings or
straight up refuse to work as some versions in
the target repository may be missing.
--refresh Refreshes the decompilation by deleting old
decompiled artifacts and restarting. This will
not be useful, if the decompiler has not been
updated. The repository has to be deleted
manually.
--skip-nonlinear Skips non-linear (e.g. April Fools, Combat
Snapshots, ...) versions completely
If you want to decompile versions which are not part of the default minecraft
meta, put the JSON files of these versions (e.g. 1_16_combat-0.json) into the
"extra-versions" directory
- Yarn support is experimental as some versions can not (yet) be remapped with yarn
- Some versions of yarn are completely broken, so they are skipped. Affected versions:
19w13a
,19w13b
,19w14a
,19w14b
- Some versions of yarn are completely broken, so they are skipped. Affected versions:
- Other quirks, which were successfully worked around:
- Some build of yarn are broken, so older ones are used instead. Affected versions:
19w04b
,19w08a
,19w12b
- Older versions of yarn don't exist in merged form. They are merged with intermediary mappings. Affected versions:
< 20w09a
- Older versions of yarn only exist with switched namespaces. They were switched back to their correct namespaces. Affected versions:
< 1.14.3
- One version of yarn exists in maven, but does not exist in meta.fabricmc.net. Affected version:
1.14.2 Pre-Release 1
- Some combat snapshots are located in a non-standard-path (on maven.fabricmc.net and on meta.fabricmc.net). Affected versions:
1.15_combat-6
,1.16_combat-0
- Some build of yarn are broken, so older ones are used instead. Affected versions:
- Version
1.16_combat-1
,1.16_combat-2
,1.16_combat-4
,1.16_combat-5
,1.16_combat-6
do not exist at all
- Parchment supports only release versions of minecraft
- Supported minecraft versions start at
1.16.5
, but not every release version since then is available - Only "release"-builds of parchment are supported at this time. No nightlies/snapshots are used.
- To remove everything except generated repositories and extra-versions
git clean -d -f -e extra-versions -x
. Cleans meta files and artifacts. If a decompilation is needed, it needs to be done again.