So this January I made a mod for Minecraft 1.8 and Forge that implements most of the Raspberry PI protocol and works with most of 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 need python, Minecraft 1.8, Minecraft Forge, my Raspberry Jam Mod and the Minecraft PI Python package. Then:
- Install Forge for 1.8.
- Create a Minecraft profile that uses it.
- Create a mods subdirectory to your Minecraft directory (%appdata%\.minecraft on Windows, I believe).
- Put my mod in the mods directory.
- Create an mcpipy subdirectory to your Minecraft directory.
- Put the contents of the Minecraft PI Python package into the mcpipy directory.
- Create a Minecraft profile that uses the 1.8 Forge.
- Run Minecraft and create a world.
- Run python scripts via commandline or straight in Minecraft via /py scriptname. E.g., /py nt7s_sphere will draw a sphere.
The scripts communicate with Minecraft via ASCII messages sent over port 4711. The python API is described here. The subset I implement is the Raspberry Juice one. There is a lot of information on python programming of Minecraft here (and the author of that site has a book which I've ordered for my kids but it hasn't come yet).
I am hoping that this will be great for both programming education and teaching 3D geometry.
It turns out that someone beat me to this by a couple of weeks, and has a mod for 1.7.10 that does the same thing. (In fact some of the ideas in the current version of my mod are based on the ideas from that mod.)
If anybody wants more sample scripts, here are some, including my donut, Klein bottle and Mobius strip scripts.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteMy Windows installer now has full support for Python 3.
ReplyDeleteThanks a million! Yours is the best API I've found so far for supporting multiplayer minigames (getting player names, iDs, etc.) All of the example projects are awesome too! I am attempting to teach Python with Minecraft in my high school programming class this year. I hope this gets my students more involved. Thanks for all your hard work!
ReplyDeleteYou're very welcome. I have been working with someone who has a Minecraft server for homeschooling families, and so I've been improving multiplayer security and support.
ReplyDeleteThis is a nice mod :). You are very talented man.
ReplyDeletePS: If you are searching for next gen graphiccards, follow my blog: http://www.grafikkarten-bewertung.de
Thanks, but the newest desktop we own is well over a dozen years old, and no doubt can't take any current graphic card. :-) And the laptops we have at home don't have replaceable graphic cards either.
ReplyDeleteI was looking at starting a YouTube series using this mod and maybe some of the sample scripts (and whatever I can come up with on my own). Is that OK?
ReplyDeleteSure.
ReplyDelete