Adventures in Minecraft

Wiley (Verlag)
  • 2. Auflage
  • |
  • erschienen am 26. Oktober 2017
  • |
  • 320 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-119-43955-4 (ISBN)
Learn valuable programming skills while building your own Minecraft adventure!
If you love playing Minecraft and want to learn how to code and create your own mods, this book was designed just for you. Working within the game itself, you'll learn to set up and run your own local Minecraft server, interact with the game on PC, Mac and Raspberry Pi, and develop Python programming skills that apply way beyond Minecraft. You'll learn how to use coordinates, how to change the player's position, how to create and delete blocks and how to check when a block has been hit.
The adventures aren't limited to the virtual - you'll also learn how to connect Minecraft to a BBC micro:bit so your Minecraft world can sense and control objects in the real world! The companion website gives you access to tutorial videos to make sure you understand the book, starter kits to make setup simple, completed code files, and badges to collect for your accomplishments. Written specifically for young people by professional Minecraft geeks, this fun, easy-to-follow guide helps you expand Minecraft for more exciting adventures, and put your personal stamp on the world you create. Your own Minecraft world will be unlike anyone else's on the planet, and you'll pick up programming skills that will serve you for years to come on other devices and projects. Among other things, you will:
* Write Minecraft programs in Python® on your Mac®, PC or Raspberry Pi®
* Build houses, structures, and make a 3D duplicating machine
* Build intelligent objects and program an alien invasion
* Build huge 2D and 3D structures like spheres and pyramids
* Build a custom game controller using a BBC micro:bit(TM)
* Plan and write a complete interactive arena game
Adventures in Minecraft teaches you how to make your favourite game even better, while you learn to program by customizing your Minecraft journey.
2. Auflage
  • Englisch
  • Newark
  • |
  • USA
John Wiley & Sons
  • 21,82 MB
978-1-119-43955-4 (9781119439554)
1-119-43955-8 (1119439558)
weitere Ausgaben werden ermittelt
Martin O'Hanlon (Birmingham, UK) describes himself as a professional geek and amateur snowboarder. Martin blogs about technology, Minecraft and Raspberry Pi at
David Whale (Essex, UK) is a professional software engineer. He regularly volunteers for The Institution of Engineering and Technology, which provides support at many schools, public workshops and tech camps.
  • Intro
  • Title Page
  • About the Authors
  • Table of Contents
  • Foreword
  • Introduction
  • What Is Minecraft?
  • What Is Minecraft Programming?
  • Who Should Read This Book?
  • What You Will Learn
  • What We Assume You Already Know
  • What You Need for the Projects
  • A Note for Parents and Teachers
  • The Companion Website
  • Other Sources of Help
  • Conventions
  • Reaching Out
  • Adventure 1: Hello Minecraft World
  • Setting Up Your Raspberry Pi to Program Minecraft
  • Setting Up Your PC or Apple Mac to Program Minecraft
  • Creating a Program
  • Running a Program
  • Adventure 2: Tracking Your Players as They Move
  • Sensing Your Player's Position
  • Building the Welcome Home Game
  • Using Geo-Fencing to Charge Rent
  • Moving Your Player
  • Further Adventures in Tracking Your Player
  • Adventure 3: Building Anything Automatically
  • Creating Blocks
  • Building More Than One Block
  • Using for Loops
  • Clearing Some Space
  • Building a House
  • Building More Than One House
  • Adding Random Carpets
  • Further Adventures in Building Anything
  • Adventure 4: Interacting with Blocks
  • Finding Out What You Are Standing On
  • Using Python Lists as Magic Memory
  • Sensing That a Block Has Been Hit
  • Writing a Treasure Hunt Game
  • Further Adventures in Interacting with Blocks
  • Adventure 5: Using Data Files
  • Reading Data from a File
  • Building Mazes from a Data File
  • Building a 3D Block Printer
  • Building a 3D Block Scanner
  • Building a Duplicating Machine
  • Further Adventures in Data Files
  • Adventure 6: Building 2D and 3D Structures
  • The minecraftstuff Module
  • Creating Lines, Circles and Spheres
  • Creating a Minecraft Clock
  • Drawing Polygons
  • Pyramids
  • Further Adventures with 2D and 3D Shapes
  • Adventure 7: Giving Blocks a Mind of Their Own
  • Your Block Friend
  • Using Random Numbers to Make Your Block Friend More Interesting
  • Bigger Shapes
  • Alien Invasion
  • Further Adventures in Simulation
  • Adventure 8: Building a Game Controller with a BBC micro:bit
  • What You Need for This Adventure
  • What Is a BBC micro:bit?
  • Setting Up Your Computer to Connect to Your BBC micro:bit
  • Hello BBC micro:bit
  • The Magic Doormat Revisited
  • Making a Detonator
  • Writing a Ball-Rolling Game
  • Further Adventures with Your BBC micro:bit Game Controller
  • Adventure 9: The Big Adventure: Crafty Crossing
  • A Game within a Game
  • Part 1: Building the Arena
  • Part 2: Creating the Obstacles
  • Part 3: Game Play
  • Part 4: Adding a Button and Display
  • Further Adventures in Your Continuing Journey with Minecraft
  • Appendix A: Where to Go from Here
  • Websites
  • Videos
  • Books
  • Appendix B: Quick Reference
  • Glossary
  • End User License Agreement

THIS BOOK IS going to help you learn how to write programs or mods that interact with your Minecraft world, allowing you to do some very exciting things. You use a programming language called Python to do it. This way of controlling the Minecraft world from a Python program was first created for Minecraft: Pi Edition on the Raspberry Pi. If you don't have a Raspberry Pi but have Minecraft for Windows or Apple Mac instead, that's okay; you just need to do some extra work on the setup before you get started, which this adventure shows you how to do.

Python is the programming language used in this book.

This book is full of adventures that teach you how to write programs for the Minecraft game. It's packed with all sorts of things you can do with Minecraft to entertain your friends and make the game even more fun to play. You will discover some pretty flashy ways to move your player around, and before long you'll be finding it easy to build whole cities and Minecraft creations that have never been seen before.

The Python programming language comes with a code editor called IDLE, which you will use to create, edit and run the programs you create in these adventures.

The Python programming language is used throughout the world in business and education. It is extremely powerful but also easy to learn. You can find out more about Python at

When computer programmers learn a new programming language or a new way of doing something, they always start by writing a "hello world" program. This is a really simple program that displays "hello world" on the screen, to make sure everything is installed and working properly.

In this first adventure, you set up your computer to allow you to write a program that displays the text "Hello Minecraft World" on the Minecraft chat (see Figure 1-1).

FIGURE 1-1 Hello Minecraft World

To do the Minecraft programming in this book, you need one of these three types of computer: a PC running Microsoft Windows; an Apple Mac running macOS X; or a Raspberry Pi running Raspbian with Pixel. The way you set up your computer depends on which sort of computer you have but, once you have set it up, you program Minecraft in exactly the same way on all of them. To make it easier for you to set up your computer, you can download a starter kit from The starter kits have been tested to make sure all the adventures in this book work properly.

You'll see that your starter kit contains a README file, which you should have a look at. It describes what the kit contains and how it was created; you could use this information to set up your own computer from scratch, although this is not recommended. You'll get a lot more out of it by following the instructions in this book.

Make sure you follow the instructions for your type of computer, either "Setting Up Your Raspberry Pi for Programming Minecraft" or "Setting Up Your PC or Apple Mac for Programming Minecraft".

It's essential that you to set up your computer correctly; otherwise you could get yourself into quite a muddle. So please make sure that you follow the instructions very carefully!

Setting Up Your Raspberry Pi to Program Minecraft

If you are using a Raspberry Pi, Minecraft is installed already; you just need to download the Raspberry Pi starter kit. Everything you need to complete Adventures in Minecraft is in a folder called MyAdventures. You also will save your Minecraft programs in this folder.

To see a video of how to set up your Raspberry Pi, visit the companion website at

The Raspberry Pi's graphical user interface (GUI), known as Pixel, is used throughout Adventures in Minecraft. The GUI is installed on Raspbian, but depending on how you have set up your Raspberry Pi, it may not load the GUI when it boots up. You may instead start with a login and command prompt.

If your Raspberry Pi is set up to start at a command prompt, you need to log in, type startx and then press Enter to load the GUI when the command prompt appears.

Start Adventures in Minecraft with a new installation of Raspbian so you can be sure that your Raspberry Pi is set up correctly. Visit for information on setting up your Raspberry Pi and installing Raspbian.

Downloading the Starter Kit

Once your Raspberry Pi has booted up and the GUI has started, you can download the starter kit for Raspberry Pi by following these steps:

  1. Open a terminal, click Menu (the Raspberry Pi icon in the top left)???Accessories???Terminal.
  2. Change the directory to the Desktop by typing the following command (see Figure 1-2) and pressing Enter:

    cd ~
    cd Desktop

  3. Download the starter kit entering the following command and pressing Enter:

    git clone

FIGURE 1-2 Download the Raspberry Pi starter kit.

Visit as there may be future updates and help available.

Starting Minecraft on Your Raspberry Pi

After you have downloaded the starter kit, you can run the game and have a go before moving on to creating your first program.

In future adventures, the instructions tell you to start Minecraft. If you ever need a reminder of how to start Minecraft on the Raspberry Pi, just refer to this section.

To start Minecraft, follow these steps:

  1. Select Menu???Games???Minecraft Pi.
  2. Start a new world by selecting Start Game???Create New.
  3. That's it! Now you can start playing Minecraft.

FIGURE 1-3 Start Minecraft and create a new world.

The main menu has two options: Start Game to build a new or enter an existing Minecraft world and Join Game to join another player's world. (See Figure 1-3.)

Once your Raspberry Pi is set up and you have Minecraft running, you can skip the next section (unless you want to set up Minecraft on a PC or Mac as well as on your Raspberry Pi) and go straight to the "Creating a Program" section later in this adventure.

Setting Up Your PC or Apple Mac to Program Minecraft

Whether you are using a Windows PC or a Mac, you need to make sure Minecraft is installed and working on your computer. If you don't have a copy of Minecraft and a user ID to play it, visit to purchase the game. If you encounter any problems installing, running or playing Minecraft, help is on hand; just visit

To program the full version of Minecraft on the PC and Apple Mac, you need to use a Minecraft server and the RaspberryJuice plugin, which is included in the Starter Kit you download later in this section

RaspberryJuice is a Minecraft server plugin that allows you to write programs to change Minecraft in the same way as you can on the Raspberry Pi. A plugin is a program that runs inside the Minecraft server and lets you modify (mod) Minecraft.

You need to download the Python programming language and install it on your computer. Throughout Adventures in Minecraft you use Python version 3. The programs within Adventures in Minecraft have all been tested to work with Python version 3.6.1. Although it is not essential that you use this version, it is recommended and you must use Python 3.something.

If you want to find out more about Python, visit You can download Python from, and the Python Wiki,, contains lots of information, tutorials and links to Python community websites.

Setting up your Windows PC or Apple Mac to create your first Minecraft program requires three steps:

  1. Download and extract the PC or Apple Mac starter kit, which contains a preconfigured Minecraft server with the RaspberryJuice plugin and a folder called MyAdventures where you will save your Minecraft programs.
  2. Download and install the Python programming language.
  3. Configure Minecraft and connect it to the server.

To see a video of how to set up your Windows PC or Apple Mac, visit the companion website at...

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

16,99 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen