Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News - Mojang is making some Minecraft libraries open source

#1
Mojang is making some Minecraft libraries open source

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/10/mojang-is-making-some-minecraft-libraries-open-source.jpg" width="200" height="200" title="" alt="" /></div><div><p><em>Minecraft</em> developer Mojang <a href="https://minecraft.net/en-us/article/programmers-play-minecrafts-inner-workings">plans to make a handful of libraries</a> 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). </p>
<p>The first two libraries getting the open-source treatment are Brigadier, or the command engine that <em>Minecraft</em> uses for its in-game developer console, and DataFixerUpper, a system that updates old in-game data into something that a current version of <em>Minecraft</em> can use.</p>
<p>As demonstrated in the blog post detailing the open-source plans, the Brigadier system deals with text commands keyed into <em>Minecraft</em>’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. </p>
<p>While Mojang says Brigadier is fairly straightforward and user-friendly, DataFixerUpper is more or less just the opposite. </p>
<p>“When we load up any world in <em>Minecraft</em> 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 <em>Minecraft</em> 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.”</p>
<p>“We have one little unit which uses DataFixerUpper that just says to <em>Minecraft</em>: ‘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 <em>Minecraft</em> actually loads the chunks, it goes through DataFixerUpper and that turns it into what it should currently be now.”</p>
<p>Both <a href="https://github.com/Mojang/brigadier">Brigadier</a> and <a href="https://github.com/Mojang/DataFixerUpper">DataFixerUpper</a> 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.</p>
</div>
Reply



Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016