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
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
- MyAdventures : folder to save the minecraft programs too
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 a folder "MyAdventures"
- 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
-
Copy the mcpi folder to MyAdventures
-
Get the minecraft-stuff module from https://github.com/martinohanlon/minecraft-stuff
git clone https://github.com/martinohanlon/minecraft-stuff
-
Copy "minecraftstuff\minecraftstuff.py" to the mcpi folder.
-
Download anyio from github https://github.com/whaleygeek/anyio
git clone https://github.com/whaleygeek/anyio
- Create a folder "anyio" in MyAdventures
- Copy the anyio/seg7.py file to MyAdventures/anyio
- Copy the anyio/init.py file to MyAdventures/anyio
- Download bitio from github https://github.com/AdventuresInMinecraft/bitio
git clone https://github.com/AdventuresInMinecraft/bitio
-
Copy the bitio/src/microbit folder to MyAdventures
-
Copy the bitio/bitio.hex file to MyAdventures