Docker build of the Minecraft server + Raspberry Juice plugin (Minecraft Pi socket API)
Set to creative mode, so that the player can learn Python without being disturbed by enemies.
Dockerfile at GitHub.
Based on java:8-jre official image (Debian + OpenJDK 8's JRE):
To run the server:
docker run -d -p 25565:25565 -p 4711:4711 paulchoi/raspberryjuice
Port 25565 is Minecraft server.
Port 4711 is the Minecraft Pi socket.
Interact with Minecraft using Python
To get started, do the following:
- Find out your Docker VM's IP. For Boot2Docker, run "boot2docker ip"
- Run Minecraft and add your IP as a new server.
- Join Multiplayer.
- Now you are ready to interact with Minecraft using Python!
Note: Step #3 is important, because certain Python methods require a player to be present in server (such as .playerPos())
There's lots of information on teaching Python programming with Minecraft here: