Alexander Pruss's Blog



This is extremely appealing as my kids are very into Minecraft. However, we don't have a PI, and while they're cheap, they need an HDMI display device and we don't have one. It is discovered that there are plugins (e.g., Raspberry Juice for Bukkit) for Minecraft servers that support (most of) the protocol of the PI, however it's not a good idea to run a private server just to implement this.



So in January, I created an extension for Minecraft 1.8 and Forge which implements the majority of the Raspberry PI protocol and works with the majority of Python scripts that are compatible with Minecraft PI Edition. Here's an example of a spiral and glasstorus with water inside.



To install, you'll need Python, Minecraft 1.8, Minecraft Forge, my Raspberry Jam Mod, and the Minecraft PI Python package. Then:



1. Install Forge for 1.8. 2. Create a Minecraft profile that uses it. 3. Create a mods subdirectory to your Minecraft directory (%appdata%\.minecraft on Windows, I believe). 4. My mod is now in the mods directory. 5. Create a mcpipy subdirectory in your Minecraft directory. 6. Put the contents of the Minecraft PI Python package into the mcpipy directory. 7. Create a Minecraft profile that utilizes the 1.8 Forge. 8. Run Minecraft and create a new world. 9. Run python scripts via commandline or straight in Minecraft with the command /py scriptname. For instance, /py_nt7s_sphere would draw an sphere.



The scripts communicate with Minecraft via ASCII messages sent over port 4711. This article explains the Python API.Minecraft multiplayer The Raspberry Juice subset is the one I use. There is a lot of information on python programming in Minecraft here (and the author of that site has a book which I've ordered on behalf of my kids but it hasn't come yet).