Chapter
Adventure 1 Hello Minecraft World
Setting Up Your Raspberry Pi to Program Minecraft
Downloading the Starter Kit
Starting Minecraft on Your Raspberry Pi
Setting Up Your PC or Apple Mac to Program Minecraft
Installing the Starter Kit and Python on Your Windows PC
Installing the Starter Kit and Python on Your Apple Mac
Starting Minecraft on Your Windows PC or Apple Mac
Stopping the Minecraft Server
Adventure 2 Tracking Your Players as They Move
Sensing Your Player’s Position
Showing Your Player’s Position
Tidying Up Your Position Display
Using postToChat to Change Where Your Position Displays
Building the Welcome Home Game
Using if Statements to Make a Magic Doormat
Checking if Your Player Is at a Particular Location
Writing the Welcome Home Game
Using Geo‐Fencing to Charge Rent
Working Out the Corner Coordinates of the Field
Writing the Geo‐Fence Program
Further Adventures in Tracking Your Player
Adventure 3 Building Anything Automatically
Building More Than One Block
Building Multiple Blocks with a for Loop
Building a Huge Tower with a for Loop
Using setBlocks to Build Even Faster
Reading Input from the Keyboard
Building More Than One House
Building a Street of Houses with a for Loop
Generating Random Numbers
Further Adventures in Building Anything
Adventure 4 Interacting with Blocks
Finding Out What You Are Standing On
Finding Out if Your Feet Are on the Ground
Using Python Lists as Magic Memory
Building Vanishing Bridges with a Python List
Sensing That a Block Has Been Hit
Writing a Treasure Hunt Game
Writing the Functions and the Main Game Loop
Placing Treasure in the Sky
Collecting Treasure When It Is Hit
Adding Your Bridge Builder
Further Adventures in Interacting with Blocks
Adventure 5 Using Data Files
Interesting Things You Can Do with Data Files
Building Mazes from a Data File
Building a 3D Block Printer
Hand‐Crafting a Small Test Object to 3D Print
Building a 3D Block Scanner
Building a Duplicating Machine
Writing the Framework of the Duplicating Machine Program
Building the Duplicator Room
Demolishing the Duplicator Room
Scanning from the Duplicator Room
Cleaning the Duplicator Room
Printing from the Duplicator Room
Further Adventures in Data Files
Adventure 6 Building 2D and 3D Structures
The minecraftstuff Module
Creating Lines, Circles and Spheres
Creating a Minecraft Clock
Further Adventures with 2D and 3D Shapes
Adventure 7 Giving Blocks a Mind of Their Own
Using Random Numbers to Make Your Block Friend More Interesting
Further Adventures in Simulation
Adventure 8 Building a Game Controller with a BBC micro:bit
What You Need for This Adventure
Understanding Inputs and Outputs
Using Your BBC micro:bit as a Game Controller
Setting Up Your Computer to Connect to Your BBC micro:bit
Plugging In Your BBC micro:bit
Loading the Game Controller Code onto Your BBC micro:bit
Using Your BBC micro:bit Display
The Magic Doormat Revisited
Developing the Magic Doormat Program
Designing Your Own Icon for the Display
Attaching a Banana to Your BBC micro:bit
Writing the Detonator Program
Writing a Ball‐Rolling Game
Building the Structure of the Program
Adding a Button and a Countdown
Sensing Tilt Movements with Your BBC micro:bit
Moving the Ball When You Tilt Your BBC micro:bit
Collecting Items from the Table
Adding a Time Penalty for Falling into a Hole
Further Adventures with Your BBC micro:bit Game Controller
Adventure 9 The Big Adventure: Crafty Crossing
Part 1: Building the Arena
Part 2: Creating the Obstacles
Setting the Level as Complete and Calculating Points
Adding the Game Over Message
Part 4: Adding a Button and Display
Further Adventures in Your Continuing Journey with Minecraft
Appendix A Where to Go from Here
Other Ways to Make Things Happen Automatically
Appendix B Quick Reference