Linux Format

Building in Minecraft powered by Python

Minecraft is one of the most versatile video games of all time: it offers an open environment where the only limit is your imagination (well, plus your hardware and your patience – Ed). It is not, however, open source, so the practical limitations are usually the building blocks and macros available in-game.

That was the case until the Raspberry Pi version of Minecraft was released, which offers a pretty decent API. A few hacks here and there with the help of a couple of projects called Raspberry Jam and Forge, and we’re able to access the Minecraft API on Linux and hook directly into the game with Python code.

For the purposes of this tutorial we’re using a pre-packaged toolset called McPiFoMo, which stands for Minecraft Pi Forge Mods (available at http://rogerthat.co.uk/McPiFoMo.rar).

Getting started

First, download and install the appropriate version of for your distro of choice. Developer Mojang offers pre-packaged solutions for Debian/Ubuntu and Arch (DEB and AUR respectively), and a generic Java version for everyone else, at . Next you’ll want to make sure you’ve got Python installed. sudo

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format12 min read
Let’s Code Some Demos Like It’s 1990!
Ferenc Deák never throws anything away, which is why he still has all his demoscene files. Sadly, it also means his fridge is a no-go zone. It all started when this author’s beloved retro PC, used to host nostalgic gaming sessions, I suddenly suffer
Linux Format1 min read
Nvk Is Go!
"NVK, the open source Vulkan driver for Nvidia hardware in Mesa, is ready for prime time. The merge request has landed, getting rid of the nonconformant implementation warnings and signalling to distros that it’s now time to start shipping NVK to use
Linux Format3 min read
Kernel Watch
Linus Torvalds announced the fourth RC (Release Candidate) for what will become Linux 6.9 in another few weeks. In his announcement, he noted that there was “Nothing particularly unusual going on this week – some new hardware mitigations may stand o

Related Books & Audiobooks