Alexander Pruss's Blog

2 min read


This is extremely appealing as my kids are very into Minecraft. We don't have a Raspberry Pi and they are expensive. However, they do require an HDMI display device. It turns out that there are plugins (e.g., Raspberry Juice for Bukkit) for Minecraft servers that use (most of) the protocol of the PI, but it's a bit overkill to create a private server to accomplish this.



In January, I developed an mod for Minecraft 1.8 and Forge which implements the majority of the Raspberry PI protocol and works with all the Python scripts that work with Minecraft PI Edition. For instance, here's a spiral and a glass torus with water inside.



To install, you'll require 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 makes use of it. 3. Create a mods subdirectory to your Minecraft directory (%appdata%\.minecraft on Windows, I believe). 4. Place my mod in the mod directories 5. Create a mcpipy subdirectory in your Minecraft directory. 6. Copy the contents of the Minecraft PI Python package into the mcpipy directory. 7. Create a Minecraft profile that uses the 1.8 Forge. 8. Run Minecraft and create a new world. 9. Run python scripts via commandline or directly in Minecraft by using /py scriptname. This is sparta For example, /py_nt7s_sphere can draw a globe.



The scripts communicate with Minecraft via ASCII messages sent over port 4711. Python's API is described here. 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 website has a book that I've ordered on behalf of my kids but hasn't arrived yet).

In case you have found a mistake in the text, please send a message to the author by selecting the mistake and pressing Ctrl-Enter.
Comments (0)

    No comments yet

You must be logged in to comment.

Sign In / Sign Up