JSPM

minecraft-java-decomp

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 65
  • Score
    100M100P100Q73277F
  • License MIT

Lib and CLI tool to decompile and deobfuscate Minecraft Java Edition

Package Exports

  • minecraft-java-decomp
  • minecraft-java-decomp/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (minecraft-java-decomp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

minecraft-java-decomp

NPM version Build Status Gitpod ready-to-code

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.