self-proclaimed internet enthusiast!



Minecraft Java Server

Minecraft Python API

Minecraft Java edition with Python API on Ubuntu 18.04

Install Java and Python:

$ sudo apt install software-properties-common openjdk-8-jdk-headless python3

Prepare working directory:

$ mkdir pycraft pycraft/server
$ cd pycraft/server/

Download latest Minecraft server version from download server:

$ wget

WRITEME: Build spigot using BuildTools.jar

Agree to EULA:

$ echo "eula=true" > eula.txt

Download RaspberryJuice plugin:

$ mkdir plugins
$ wget -O plugins/raspberryjuice-1.11.jar

Start Minecraft server (with 1G memory limit):

$ java -Xmx1G -Xms1G -jar spigot.jar nogui

While the server is running, open a new terminal and download MCPI libraries:

$ cd pycraft
$ git clone
$ ln -s RaspberryJuice/src/main/resources/mcpi/api/python/modded/mcpi mcpi

Create test python script - this one creates a bunch of glass blocks on top of each other:

$ echo "import mcpi.minecraft as minecraft" >
$ echo "import mcpi.block as block" >>
$ echo "mc = minecraft.Minecraft.create()" >>
$ echo "for y in range(0, 64):" >>
$ echo "    mc.setBlock(0, y, 4," >>

Run script:

$ python3

Join the server and you should see the glass blocks - modify the scripts and run it again to see the changes.

Valheim Dedicated Server