- Run Minecraft Pi edition or Raspberry Juice
docker run -it -p 25565:25565 -p 4711:4711 wh11e7rue/raspberryjuice- or
docker run -it -p 25565:25565 -p 4711:4711 lunran/raspberryjuiceif you have Vivecraft
- Run Minecraft (or Vivecraft)
- Select "Multiplayer"
- Add the IP address as a new server
- If you're running Docker in a Docker Machine VM, execute
docker-machine ip <VM-name>to find it out.- e.g.
docker-machine ip default
- e.g.
- Otherwise use "localhost"
- If you're running Docker in a Docker Machine VM, execute
- Join it!
- Run this Docker build.
docker run -it lunran/picraft
- Import Picraft
from picraft import *
- Connect to the server.
- If you're running Docker in a Docker Machine VM,
world = World('<VM-IP>')- e.g.
world = World('192.168.99.100')
- e.g.
- Execute
docker-machine ip <VM-name>if you don't know the IP address.- e.g.
docker-machine ip default
- e.g.
- If you're running Raspberry Juice locally or in a local docker container,
world = World()
- Create a tower of gold.
with world.connection.batch_start():
for y in range(0, 100):
world.blocks[world.player.tile_pos + Vector(x=10,y=y)] = Block('gold_block')Cast a spell of Python in Minecraft!