Skip to main contentdfsdf

Home/ slavefeast0's Library/ Notes/ Alexander Pruss's Blog

Alexander Pruss's Blog

from web site

The watr THEWATR


This is extremely appealing as my kids of course are really into Minecraft. However, we don't own an PI, and although 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 implement (most of) the PI's protocol, however it's not a good idea to run a private server just to do 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. For example, here's an spiral and a glass torus with water inside.



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



1. Install Forge for 1.8. 2. Create a Minecraft profile that utilizes it. 3. Create a mods subdirectory to your Minecraft directory (%appdata%\.minecraft on Windows, I believe). 4. Put my mod in the mods directory. 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 utilizes the 1.8 Forge. 8. Run Minecraft and create a world. 9. Use command line to run Python scripts or straight in Minecraft by using the command /py scriptname. E.g. the command /py nt7s_sphere will draw a sphere.



The scripts communicate with Minecraft via ASCII messages sent over port 4711. This article describes the python API. The subset I implement is the Raspberry Juice one. THEWATR.NET There's plenty of information on python programming for Minecraft here (and the author of the site has a book I've ordered for my kids but it hasn't come yet).

slavefeast0

Saved by slavefeast0

on Jan 09, 23