Sunday, 6 October 2013

MineCraft: Pi Edition Java Api

I saw a recent post on Raspberry Pi Spy about the Pi edition of MineCraft having a python API and thought it might be fun to play with. After installing, it seems it also has a Java Api which closely follows the Python. The next question was what to write, always a sticking point. I decided upon flipping things on their head a little and have a joystick in MineCraft control my trusty PiBot (I've tried to control it with everything else why not this). Hitting one of the blocks via a right click would launch the Bot into action.




The Bot is controlled by a Web service, so no changes were needed from the code previously written to talk to an android tablet.

The Api includes some examples written by Daniel Frisk along with a Javadoc and Martin O'Hanlon has written some good Python tutorials on his blog http://www.stuffaboutcode.com.


My resulting code can be found at
:https://bitbucket.org/chughes42/minecraft-pi

and the Pibot code is at

https://bitbucket.org/chughes42/remotepibot






2 comments:

Robert F. Crocker said...

I want you to try and complete some of the following tasks prior to the chat. If you can't complete the tasks that's fine, you will still be able to take part in the chat. Minecraft PE Mods

Innocent Saqib said...

I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here. minecraft