informa
2 MIN READ
News

Mojang is making some Minecraft libraries open source

Minecraft developer Mojang plans to release a handful of libraries from the game for developers to explore or use for their own projects. Two such libraries have already hit Github.

Minecraft developer Mojang plans to make a handful of libraries from the Java build of the game open source, giving fellow game devs the ability to peruse, tweak, or use in their own projects (with credit). 

The first two libraries getting the open-source treatment are Brigadier, or the command engine that Minecraft uses for its in-game developer console, and DataFixerUpper, a system that updates old in-game data into something that a current version of Minecraft can use.

As demonstrated in the blog post detailing the open-source plans, the Brigadier system deals with text commands keyed into Minecraft’s chat by suggesting possible commands as they’re being typed and translating the resulting command into an action in the game like giving a certain user an item or changing the game mode. 

While Mojang says Brigadier is fairly straightforward and user-friendly, DataFixerUpper is more or less just the opposite. 

“When we load up any world in Minecraft right now, you can have some data that has not been touched for six years, because that chunk was last played six years ago,” explains Minecraft Java dev Nathan Adams in the post. “So we need to know: 'OK, this level actually looks really old. Now we’ve got to turn that old data into what it should look like now – in a way that the game can currently read.”

“We have one little unit which uses DataFixerUpper that just says to Minecraft: 'this is how to turn anything into the data format that the game is going to use.' And so the game is now only saying 'This is how the data looks, so this is how I’m going to read it,” he explains. ”Basically, before Minecraft actually loads the chunks, it goes through DataFixerUpper and that turns it into what it should currently be now.”

Both Brigadier and DataFixerUpper can be downloaded right now from the company’s Github page and Mojang notes that it plans to update that original blog post when more systems are made open source as well.

Latest Jobs

Manticore Games

San Mateo, California
8.23.22
Senior Software Engineer - Mobile

Sony PlayStation

San Diego, California
6.23.22
Sr. Online Programmer

The Walt Disney Company

Glendale, California
8.1.22
Associate Marketing Manager - Walt Disney Games

Insomniac Games

Burbank, California
8.26.22
Accessibility Design Researcher
More Jobs   

CONNECT WITH US

Explore the
Subscribe to
Follow us

Game Developer Job Board

Game Developer Newsletter

@gamedevdotcom

Explore the

Game Developer Job Board

Browse open positions across the game industry or recruit new talent for your studio

Browse
Subscribe to

Game Developer Newsletter

Get daily Game Developer top stories every morning straight into your inbox

Subscribe
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more