Oh Snap! Coders

Detonate a castle in Minecraft

TNT is one of the blocks most favourited by the Minecraft players and we are going to mess with it today. In our game, Steve will detonate the entrance to the castle after standing on a coloured brick. Step 1 We start with building a simple castle. The constants X, Y and Z should reflect the coordinates in your world where you would like to stand to trigger the detonation. The castle will be built relative to these coordinates.

Zombieland

In this project, we will build a game involving zombies. Each zombie will be represented by two blocks on a square arena. They will be able to move around the arena. Each zombie will be controlled using an instance (object) of a class. Player will need to walk between zombies and avoid bites. Classes and objects Classes and objects are related to Object Oriented Programming and provide a good way to neatly structure code around common behaviours.

Let me tell you a joke

In this project, we will build a smart home in Minecraft greeting you with a random joke whenever you enter it. We will do this by combining code from a couple of the projects from “the Adventures in Minecraft” and playing with the Request library for accessing a public API to fetch jokes. The Theory and Preparations REST API “API (application programming interface) is a set of rules and mechanisms by which one application or component interacts with the others.

Minecraft Admin panel (GUI)

In this tutorial, you will learn how to build a GUI - Graphical User Interface. Our goal is to create an admin panel for Minecraft that would execute some of the functions we played with in other projects. In particular, this would be: Teleport the player to given coordinates​ Clear a space based on coordinates of two vertices Build a complicated maze based on chosen file and given coordinates Installation You would need the “PySimpleGUI” package installed.

Creating a meme: Image editing with Pillow

Using Python and the Pillow library you can easily edit images similarly to using a photo editing tool like Photoshop. We will use Pillow to create a meme but firstly we will play with some of the basic functions of the library. Installation Pillow library could be installed on your computer using Python’s package manager PIP. For Windows, firstly open the command line (Windows key and type cmd). Then change the directory to the location of your Python installation and execute two pip commands as below.