Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 2.78 KB

README.md

File metadata and controls

70 lines (43 loc) · 2.78 KB

Raspberry Pi Starter Kit

Martin O'Hanlon

From the book: "Adventures in Minecraft" written by David Whale and Martin O'Hanlon, Wiley, 2017 http://eu.wiley.com/WileyCDA/WileyTitle/productCd-1119439582.html

Description

This starter kit contains a folder called "MyAdventures" which contains all the Python libraries required to complete all the chapters in "Adventure in Minecraft".

It is highly recommended that you use the Starter Kit as is and follow the instructions in Adventure 1 - "Hello Minecraft World" to setup your computer.

The structure of the StarterKit is as follows:

  • AdventuresInMinecraft
    • MyAdventures : folder to save the minecraft programs too
      • mcpi : python api library distributed with Minecraft: Pi Edition and minecraftstuff libraries
      • anyio : python library which contains the library to control the 7 segment display
      • microbit : python library which contains the library to control the microbit
      • bitio.hex : the bitio microbit program which should be copied to the BBC micro:bit

StarterKit Creation Guide

If required the information below can be used as a guide to create your own StarterKit from scratch. It is written as guide, not as a precise series of instructions. There is no guarantee that they are accurate and are provided as is.

Create folder

Create a folder "MyAdventures"

Setup MyAdventures folder

  1. Get mcpi from github https://github.com/martinohanlon/mcpi
git clone https://github.com/martinohanlon/mcpi

Note - the mcpi repository contains the python 3 version of the library supplied by mojang with Minecraft: Pi Edition https://github.com/py3minepi/py3minepi and the minecraftstuff library https://github.com/martinohanlon/minecraft-stuff

  1. Copy the mcpi folder to MyAdventures

  2. Get the minecraft-stuff module from https://github.com/martinohanlon/minecraft-stuff

git clone https://github.com/martinohanlon/minecraft-stuff
  1. Copy "minecraftstuff\minecraftstuff.py" to the mcpi folder.

  2. Download anyio from github https://github.com/whaleygeek/anyio

git clone https://github.com/whaleygeek/anyio
  1. Create a folder "anyio" in MyAdventures
  • Copy the anyio/seg7.py file to MyAdventures/anyio
  • Copy the anyio/init.py file to MyAdventures/anyio
  1. Download bitio from github https://github.com/AdventuresInMinecraft/bitio
git clone https://github.com/AdventuresInMinecraft/bitio
  1. Copy the bitio/src/microbit folder to MyAdventures

  2. Copy the bitio/bitio.hex file to MyAdventures