LearnLearn Raspberry Pi Hacking

learnlearn.uk

How to code a Castle in Minecraft using Python

Introduction

In this video tutorial you learn how to code a castle in Minecraft, using Python coding.

This tutorial shows you the power and simplicity of loops, as well as the the benefit of putting your code in to functions so that you do have to code the same thing over and over again.

In order to complete this tutorial you need to use either:

  • Raspberry Pi with NOOBs installed (No extra things need installing)
  • A Windows pc with Minecraft and Forge install. See this page for how to install forge.

Video Tutorial

Here is the full Minecraft Python tutorial. Make sure you watch and listen to the video as it explains quite a lot as well as just adding code!

Stretch Challenges

Finished the tutorial? Here are a few challenges to add to your project!

  • Add a Keep in the centre of the castle
  • Add a moat
  • Add a working drawbridge
  • Add some houses outside or inside your castle.

Subscribe

Like my tutorials? Make sure you click the subscribe link for more videos! 🙂

 

Full Code

Here is the full code below. Make sure that you watch the video, don’t just copy the code below, you will learn much much more!

Next Post

Previous Post