Microsoft Just Open Sourced Parts Of Minecraft’s Java Code

Four years. That’s how long it’s been since Microsoft acquired Minecraft developer Mojang. A lot has happened in those four years — Minecraft on Switch, malware in Minecraft, open-sourcing some of the code… wait, what was that last one?

Over the weekend, Microsoft and Mojang released two parts of Minecraft‘s Java code in library form, so that “anyone can pick them up and use them in their own game”, according to Lead Engineer Nathan Adams.

Thanks to being MIT-licensed, anyone is free to “contribute and … help improve our game engine” and, by the same token, use the code freely in other projects, commercial or otherwise.

For now, there’s just the two libraries: “Brigadier“, a “command parser and dispatcher”; and “DataFixerUpper“, designed for “incremental building, merging and optimisation of data transformations … [to convert] the game data for Minecraft: Java Edition between different versions of the game”.

While the news doesn’t mean much for players, it will be a boon for interested programmers and developers, keen it see the guts of Minecraft.

Previously, the only way to see this code was via “decompilation” — turning machine code (well, bytecode) back into human-readable Java. Which is OK, but nowhere near as insightful or useful as the original code.

The plan is to open source more components in the future, though no time frame is specified. For now, if you want to check out Brigadier or DataFixerUpper, both can be found on Mojang’s GitHub page.

Programmers: Play with Minecraft’s Inner Workings! [Minecraft, via Reddit]


The Cheapest NBN 50 Plans

It’s the most popular NBN speed in Australia for a reason. Here are the cheapest plans available.

At Gizmodo, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.