2026-11-30 06:22:01 +02:00
2026-11-30 05:40:31 +02:00
2026-11-30 05:40:31 +02:00
2026-11-30 06:14:33 +02:00

OpenOnyx is the Onyx 1.8.9 client, deobfuscated, with some parts that claude refused to deobfuscate and extended with new features. The runnable client lives in run/; the readable source of the original client is in src/.

play

Windows: double-click run/run.bat.

Linux (x86-64): cd run && ./run.sh. It needs Bash, Java 21 and a PrismLauncher install with the Minecraft 1.8 assets; it searches PrismLauncher's Java first. Override locations with JAVA_BIN=/path/to/java ASSETS_DIR=/path/to/assets ./run.sh.

Both launchers need Java 21. The bundled run/jre/ is used when Git LFS fetched it (install Git LFS before cloning); otherwise run.bat falls back to Temurin 21 in C:\Program Files\Eclipse Adoptium\. run.bat links your vanilla launcher's 1.8 assets (%APPDATA%\.minecraft\assets) into run/assets/ on first start.

The launchers use generational ZGC. Measured on this client, GC pauses dropped from up to ~40 ms with the default G1 (felt as stutter) to under 0.05 ms, with higher FPS.

deobfuscation status

Everything below is produced from the untouched jars in original/ by tools/build.sh.

  • Classes: all 630 are renamed into purpose-based packages (openonyx.features.combat, openonyx.render, openonyx.ui, …). 609 have descriptive names; 21 small helpers keep *Support_NNN-style names because there was too little to name them by.
  • Strings: every encrypted string is decrypted; no decoder calls remain.
  • Members: 2,456 fields and 1,437 methods are renamed. Names come from setting labels, record components, enum constants, event handlers, getters/setters and types, plus the hand-chosen core API names in mappings/member-names.tsv (settings, Module, Render2D, Animation, theme, shaders, KillAura, …).
  • Junk removed: 5,098 no-op ObfuscationMarker calls; 7,588 disguised constants (5 >> 2, --3, true ^ true) folded; the obfuscator's parameter shuffling undone in the decompiled source; private methods it had hidden as "synthetic" restored (about 24,000 lines that decompilers would otherwise skip).
  • Mappings: mappings/onyx-mappings.tsv lists every class, field and method rename (original owner, name, descriptor → recovered name).

src/ is the decompiled, deobfuscated source of the original client (630 files, ~65,000 lines, decompiled with Vineflower). It is the reference for reading and understanding the client. The game itself runs from bytecode: decompiled obfuscated code does not recompile cleanly as-is, so new code is compiled separately and patched in.

project layout

original/   untouched input jars: onyx.jar, mc.jar, mc-linux.jar
run/        the game: run.bat, run.sh, client/ (built jars), rt/ (libraries, natives), jre/
src/        deobfuscated source of the original client (reference)
patches/    source of the new features (openonyx.patch)
mappings/   class-renames.tsv, member-names.tsv (inputs) and onyx-mappings.tsv (output)
tools/      Deobfuscate, Patch, VerifyJar, RenameClasses, PatchLinuxRuntime and build.sh

building

tools/build.sh          # rebuild run/client/ and mappings/onyx-mappings.tsv
tools/build.sh --src    # also regenerate src/

Run it with Java 21 (JAVA_HOME or java on PATH); on Windows use Git Bash. The first run downloads ASM 9.7.1 and Vineflower 1.12.0 from Maven Central into tools/lib/. The build runs these steps:

  1. Remap (tools/Deobfuscate.java): renames, string decryption and cleanups on onyx.jar. The same mapping is applied to mc.jar and mc-linux.jar, whose hooks call into the client.
  2. Patch (tools/Patch.java): adds the new settings and hooks. Each edit locates its spot by instruction pattern and stops the build if the pattern is missing.
  3. Compile patches/src against the patched jars.
  4. Verify (tools/VerifyJar.java): every field/method reference in the client (Windows and Linux sets) must resolve, and every method must pass ASM's bytecode verifier.

To rename more of the client, add lines to mappings/member-names.tsv or mappings/class-renames.tsv and rebuild. To add a feature, put the code in patches/src/openonyx/patch and wire it in from tools/Patch.java.

-Donyx.selftest=<world> (on a throwaway --gameDir) is a smoke test. It joins the world, screenshots the Record animation editor and two block animations, checks the inventory manager's Optimized mode against the integrated server, and quits.

The Linux runtime uses the Legacy Fabric LWJGL 2 build. Its mc-linux.jar (made from mc.jar by tools/PatchLinuxRuntime.java) limits Onyx packet events to the client connection and uses Java NIO instead of Netty epoll.

static security review

The original onyx.jar was reviewed without executing it or making network requests:

  • No persistence, startup registration, native loading, arbitrary class loading, RAT command channel, webhook, Discord bot token or credential-file harvesting was found.
  • Network code targets Microsoft/Xbox/Minecraft authentication, Mojang skin lookup, configured Minecraft proxies, and Discord's local IPC socket.
  • The only local HTTP listener is the loopback OAuth callback on 127.0.0.1:1337.
  • ProcessBuilder is used by the optional Windows Spotify/media integration (a fixed temporary PowerShell script) and the macOS integration (a fixed AppleScript), to read now-playing metadata and cover art.
  • File access is limited to client configuration, temporary media integration files and user-selected UI/configuration files. The UI reads and writes the clipboard.

This is a static review, not a guarantee against behaviour that only appears under an unobserved runtime condition.

contributing

Contributions, renames, cleanup patches and bug reports are welcome. Open an issue or submit a pull request on Codeberg.

OpenOnyx is an independent community project and is not an official Minecraft product. Minecraft is a trademark of Mojang Studios and Microsoft Corporation. Third-party files and libraries retain their respective licenses.

S
Description
Onyx from like 2 months ago, but fully deobfuscated.
Readme
142 MiB
0 Stars 1 Watchers 0 Forks
Languages
Java 86.9%
C 9.9%
C++ 3%
Shell 0.1%