This repository contains the resources for the Minecraft Pi/Python programming workshop run at Barking & Dagenham College's #Inspiration15 event.
The workshop was run by David Bower, @rddave.
Raspberry Pis kits on which to run the sessions were kindly made available by explore STEM and were funded by IET Faraday.
The workshop pulls together David Whale's Minecraft Pi and Python flash cards in to a series of challenges that lead to an open ended "programme a house in Minecraft Pi/Python" challenge.
The challenges start with simply copying out a simple "Hello World" programme. There are 10 challenges in all, each building upon the skills learnt in the previous challenge.
The challenges are:
- "Hello World" - display a message in the Minecraft world. Introduce the Minecraft Pi / Python link. Are there any occasions in games (in general) when you might want to display messages to the gamer?
- Programmatically add single blocks in to the Minecraft world.
- Introduce the "for" loop construct - extend a single block in to a row. Why not use copy and paste for a row of blocks?
- Extend the row of blocks to a 2D wall of blocks - a double "for" loop. What does a double "for" loop / 2D array "look" like? What would a triple "for" loop / 3D array "look" like?
- Simplify your code - replace the double "for" loop with the Minecraft Pi command setBlocks.
- Integrate user input to create walls of any size, in any material (block type). Is user input validation required? Can any size wall be built?
- Better understand the Minecraft coordinate geometry system to make the four connecting outer walls of a house.
- Extend use of Minecraft's coordinate geometry to add doors and windows to the outer walls.
- Plant a garden by creating flower blocks behind Steve as he walks about the Minecraft world using the getPos command.
- Open ended code a house challenge!
- House Building Challenge document, PDF and DOCX
- Minecraft Pi flash cards, PDF (original at http://blog.whaleygeek.co.uk/minecraft-pi-with-python/ )
- Python flash cards, PDF (original at http://blog.whaleygeek.co.uk/python-flashcards/ )
- Minecraft Pi/Python block type crib sheet, PDF and DOCX (taken from http://www.stuffaboutcode.com/p/minecraft-api-reference.html )
- David Whale, @whaleygeek, for Minecraft Pi and Python flash cards.
- Martin O'Hanlon, @martinohanlon, for Minecraft Pi/Python block types.
- Raspberry Pi Foundation for table of keys used to control Minecraft Pi.
These resources can be found at https://github.com/reddog/inspiration15 Download, use, modify, improve and submit a pull request for the benefit of others!
Where possible, this work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See individual files for others licence information.