I was at Young Rewired State's (YRS) festival of code this weekend, mentoring a group of young coders from BBC Birmingham, when I saw a tweet from Raspberry Pi about it being Minecraft day on Monday, so I thought, I'm surrounded by coders, we have a weekend ahead of us, we must be able to create something...
We came up with Twitter for Minecraft, a python script which connects to a live user stream on twitter and waits for tweets to arrive, when they do, the text is rendered into blocks using a simple typeface we created in which each letter is a 3x5 collection of blocks.
This is the team I was mentoring at YRS, a particular mention needs to go to Steve, who gave his time to help me create the typeface and learn about how to code in Minecraft.
InstallCreate a twitter app
You need to create a twitter app using your twitter id, you can do this by visiting dev.twitter.com, signing on, and clicking create app; if you are having problems see a previous blog post of mine, automatically posting updates to twitter, which has some in-depth instructions.
Install python oauth & pycurl
We need a couple of python modules to get the twitter feed working. If you have never installed python modules before you are going to need to install the python setup tools module, distribute, see blog post, python - installing modules, for info on how to do this.
Update twitter keys
You will need to get the twitter keys you were given when you created your twitter app and put them into minecraft-twitter.py. Open minecraft-twitter.py and scroll down till you find:
And replace the hashes with your access keys.
Start up minecraft
Its a bit hacky (as you might expect from a hack weekend), but I've include it for reference below. If you want to get it running though I would suggest you download it from github using the instructions above.