Minecraft in the classroom?

Last week I ran a short session at Campus London with a roomful of students from local schools. Only one of the students had seen a Raspberry Pi before and only a couple had used a command line interface or seen a computer program. In just over an hour they learned how to set up the Raspberry Pi, did a bit of Linux and then hacked Minecraft using Python. Here’s what they thought of it:

“I used a raspberry pi and it showed me how exciting and useful new technology can be. Also learning simple coding was very useful and made me want to learn more. It made me more interested in technology and coding. It made me really consider my careers options involving technology.” —William

“This has pushed me to finish my game I am currently developing.” —Joseph

“It has made me interested about learning coding. I have realised coding isn’t as hard as I thought.” —Lara

“I want to learn more about programming, because it was really interesting.” —Ellie

“The most important thing I learned was how to use Raspberry Pi.” —Finley

Running minecraft from the command line

“The most important thing I learned was how to change the commands to Mine Craft.” —Harjoat

“We had a go using a device called a Raspberry Pi which let us hack into a game and let us give it commands. It was really fun and exciting to learn all these new things.” —Jasmine

Reading these comments makes me smile, it was a fantastic session and shows what you can learn in short amount of time. A few lessons jump out from the feedback:

  1. When given the opportunity, most young people find computing to be a powerful and exciting thing.
  2. Everyone gets something different out of learning how to tell a computer what to do.
  3. Play is a powerful way to learn and computers are a good way to play.

These lessons are hardly new—it’s where Logo, Scratch and Lego Mindstorms come from—but what has changed is the accessibility and opportunity. With a £30 computer and a free game you can learn computer science in a beautiful, constructionist sandbox. (“Why dig when you can code?” “Are you an Alpha or an Epsilon?” “Hack with your brain, not with your pickaxe.” And other rubbish aphorisms coming soon to a T-shirt near you.) Quite simply, you can teach yourself to think in powerful ways while messing about. I don’t know about you, but as a teacher I think that this is quite profound.

Hacking Pi Minecraft using the API and Python.

I’m going to blog more about Pi Minecraft in future; I think that its potential as a teaching and learning tool is huge.  I’ll be writing lesson plans for it and hopefully not just computing lessons: Martin O’Hanlon’s analogue clock for example would be a brilliant to teach trig and geometry in the constructionist stylee. If anyone out there—teachers, programmers, Notch, whoever—want to help then get in touch. The School of Minecraft has a nice ring to it don’t you think?

P.S. Campus is an amazing place: if you are a tech start-up or entrepreneur (or would like to be!) and can get down there, check it out. I love it.


Hacking the Minecraft world

If you’re a Minecraft fan and a Pi owner, you’ve probably already downloaded a copy of Minecraft: Pi Edition. But are you getting the most out of the fact that you can modify the world with code in-game?

If you’re not sure where to start, or if you’re looking for ideas (sometimes being given a blank canvas can be lousy for getting the brain sparking), Martin O’Hanlon at the marvellous <Stuff about=”code” /> has several tutorials on Minecraft: Pi Edition, from installing the game to using the Minecraft API to build wonderful things, like magical bridges that appear where’er you walk, games of hide and seek, and in-game analogue clocks.

The hide and seek hack is easy and rewarding: with a little coding you’ll be able to get the game to hide a diamond somewhere in the world for you to find, and to give you hints of the warmer/colder variety.

You can find code and an explanation of what’s going on over at Stuff About…

And we’re all agreed that the clock is just brilliant (it’s also big enough that you can go and stand on the hands). Again, the project has its own page with code and a spot of discussion.

We’d love to see what you’ve been doing in Minecraft – take some video, or write something about your experiments on your own website, and let us know about it!


Minecraft – it’s here!

OK – I said I wasn’t going to post again until I was back in the UK, but I just opened my laptop to check my mail at the airport and found something that really couldn’t wait. The folks from Mojang have finished the Minecraft: Pi Edition port, and it’s available for download now. For free.

You can see a post from Mojang about the news on their main blog; they’ve also opened up a Pi Edition blog, where you can find download instructions. I know some of you have already downloaded the beta version that was released in December; if you have, you’ll want to replace it with today’s release, which fixes some bugs and has more features.

To read more about Minecraft on the Pi, check out our previous posts, where you’ll find video demonstrating how coding inside the Minecraft: Pi Edition environment works, a report from MineCon, and more. Thanks to all at Mojang for all the work you’ve done on this, and greetings to those of you who are coming to the Raspberry Pi platform to play this new edition – we’re really happy to be able to welcome all you Minecrafters to the Pi family!

 


Sneak peek – some more Minecraft: Pi Edition video

As you’ll know (unless you’ve been hiding under a rock, or very busy wrapping presents), we’re expecting to see the release of Minecraft: Pi Edition from Mojang very soon. Daniel Bates, a PhD candidate at the University of Cambridge and the Raspberry Pi Foundation’s Undercover Minecraft Operative, has put together a video demo of how you’ll be able to use code within the Minecraft environment, programming the world to make building faster and easier.

Daniel says:

Note that this is a very early pre-release version, and it is subject to change before release. I’ll show off more features including interactive stuff in future videos.

 

Source code:
http://www.cl.cam.ac.uk/~db434/files/minecraft.py
http://www.cl.cam.ac.uk/~db434/files/setblockdemo.py

 

FAQ:
Q. Can I use X programming language?
A. Any language capable of communicating over the network will work. See the first source file as an example of what’s needed.

 

Q. When is it coming out?
A. No date has been confirmed yet.

 

Q. How much will it cost?
A. Nothing.

 

Q. Will it run on a 256MB Raspberry Pi?
A. Yes – this demo was filmed on an older model, and didn’t use any overclocking.

 


Minecraft: Pi Edition – video demo and more details

We’ve had loads of questions about the upcoming Minecraft: Pi Edition over the last couple of days. We sent Daniel Bates, one of the University of Cambridge PhD candidates who volunteers for Raspberry Pi, to Disneyland Paris to join Mojang for their announcement at MineCon on Saturday. He got back yesterday with some video and more details about what you’re going to see when a download’s available. Over to Daniel!

What do you get when you combine Mickey Mouse, some game developers from Sweden, and an inexpensive educational computer? Good news all around! I was at MineCon in Disneyland Paris this weekend where we unveiled an early version of Minecraft: Pi Edition.

This new version is based on the Pocket Edition of Minecraft, which you may have seen running on mobile phones and tablets, but has one key difference: you can program it. All you have to do is set up a network connection to the running game, and then you can send text commands to control the world. This makes is possible to program in any language which supports network connections, and you can access the game from any computer which is connected to the Pi. One possible setup is to have a Python prompt and the Minecraft window side-by-side on the Pi.

Minecraft: Pi Edition has been in development for less than a week, but already Daniel and Aron from Mojang have got it running really smoothly. It runs on all versions of the Raspberry Pi with no overclocking necessary. Liz interjects: Daniel F from Mojang emailed me yesterday to say they’re seeing 40fps with a 256MB Pi, although the development work was done on a set of 512MB boards. (They say they want to optimise it more, but I couldn’t detect any slowness in my time with the game.) There’s currently the ability to place any block at any location, ask what type of block is at any location, and keep track of events such as player movements, with more features planned.

We see this as a very exciting way of drawing children into programming. The game can be played with no programming at all. Then, basic programming can be used to place large numbers of blocks in particular patterns to speed up the building process – the audience burst into applause when Daniel wrote a simple loop which simultaneously changed the position and type of blocks being placed, which soon resulted in lava cascading from mid-air and setting fire to the wood below. The more creative programmer will only be limited by their imagination. Want to build a digital clock into the wall of your house which displays the real time? Easy. Want to get back at a friend who stole your precious diamonds? Remove the floor from underneath their feet and let them fall into a pit of lava. The possibilities are endless.

The goal is to release Minecraft: Pi Edition before the end of the year, free of charge. We hope that this will further advance the Raspberry Pi’s aims of getting children excited about computing.