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 Format9 min read
Create Old-school Pixel Art Images
Credit: www.gimp.org Think of retro games and you’ll probably think of the pixellated look of titles released on consoles such as the NES. Games such as Bomberman and Kid Icarus worked within the limitations of ’80s technology, yet offered hours of f
Linux Format5 min read
Vintage PC options
Having got LMDE installed on our woefully underpowered EeePC, it became apparent that the machine wasn’t going to be very useful. Except for pandering to our sense of nostalgia. According to Systemd-analyze, it took a minute to boot (as far as the lo
Linux Format1 min read
Tom’s HARDWARE
No matter if you're building a PC, buying a laptop or learning about robots, Tom’s Hardware has all the comprehensive knowledge you need. Scan & Subscribe for free! ■

Related Books & Audiobooks