minecraft-java-decomp
v1.1.0
Published
Lib and CLI tool to decompile and deobfuscate Minecraft Java Edition
Downloads
212
Readme
minecraft-java-decomp
minecraft-java-decomp
provides an API and command line interface (CLI) to decompile and deobfuscate Minecraft Java Edition game versions, using Mojang mappings.
minecraft-java-decomp is similar to DecompilerMC which is written in Python.
Installation
npm install -g minecraft-java-decomp
Usage (CLI)
npx minecraft-java-decomp --help
minecraft-java-decomp - v1.0.0
Minecraft Java Edition decompiler and deobfuscator
Options:
--version, -v Version to decompile. For latest release, try "release" or "snapshot" for latest snapshot
--side "server" or "client" (default: client)
--path Path to save the decompiled files. Defaults to an internal folder for this package.
--force Force fresh download and decompile even if the version folder already exists
--versions Passing --versions will list all versions
--clean Clear the internal version cache (where versions are decompiled to if you did not specify a decompiler output path). No other actions will be taken.
Usage:
minecraft-java-decomp --version latest Decompile latest version
minecraft-java-decomp --versions List all available versions
minecraft-java-decomp -v 12w16a --side server Download and decompile server version 12w16a
Usage (API)
const { decompile } = require('minecraft-java-decomp');
decompile('1.20.0', {
side: 'client',
path: './decompiled',
force: false
})
See the typescript types for more information on the options.