Linux Format

Hacking Minecraft games with Python

This issue sees the last in our series of Minecraft Python coding tutorials. Over the last six issues, we’ve looked at integrating Python code into Minecraft, giving us the creative freedom to produce all kinds of wonderful monstrosities.

We’ve looked at how to move our character around the world (see LXF252) using code, building blocks with code and automatically building prefabricated creations. We experimented with Turtle graphics (see LXF255), pixel art and vector graphics (see LXF256) in Minecraft. We even designed our own graphical user interface, with buttons to spawn buildings (see LXF254) in our Minecraft worlds.

could be considered one of the most creative video games of our time, with virtual environments spanning acres of procedurally generated random biomes. The world and its contents are left to the player’s imagination. However, in one’s creativity is usually limited to the in-game tools provided. Now, thanks to the release of the Raspberry Pi version of , we’re finally able to hook directly into the API with Python and program away to our heart’s

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