RaspberryJuice: Pi Edition API for Bukkit Servers

Unlocking Minecraft Pi API Magic on Full Servers with RaspberryJuice If you have ever tinkered with Minecraft Pi Edition, you know the joy of controlling the game world through simple Python scripts. That special version, bundled with Raspberry Pi computers, introduced a programming interface tha...

Download raspberryjuice for Minecraft 1.12, 1.9, 1.8.1, 1.8, 1.7.2

Original name: raspberryjuice

Minecraft: 1.12, 1.7.2, 1.8, 1.8.1, 1.9

FileVersionLoaderSize
raspberryjuice-1.1.jar——15 КБDownload
raspberryjuice-1.1.1.jar——15 КБDownload
raspberryjuice-1.2.jar——16 КБDownload
raspberryjuice-1.3.jar——15 КБDownload
raspberryjuice-1.4.jar——15 КБDownload
raspberryjuice-1.4.2.jar——16 КБDownload
raspberryjuice-1.5.jar——17 КБDownload
raspberryjuice-1.10.jar1.12—24 КБDownload
raspberryjuice-1.11.jar1.12—25 КБDownload
raspberryjuice-1.9.1.jar1.7.2—22 КБDownload
raspberryjuice-1.6.jar1.8—17 КБDownload
raspberryjuice-1.7.jar1.8.1—18 КБDownload
raspberryjuice-1.8.jar1.9—18 КБDownload
raspberryjuice-1.9.jar1.9—22 КБDownload

Unlocking Minecraft Pi API Magic on Full Servers with RaspberryJuice

If you have ever tinkered with Minecraft Pi Edition, you know the joy of controlling the game world through simple Python scripts. That special version, bundled with Raspberry Pi computers, introduced a programming interface that let you place blocks, read player positions, and build structures with just a few lines of code. But what if you could bring that same creative coding power to the full Java Edition of Minecraft, on a proper Bukkit server? That is exactly what the RaspberryJuice plugin delivers, bridging the gap between the lightweight Pi API and the limitless possibilities of a modded multiplayer environment.

What Is RaspberryJuice and How Does It Work?

RaspberryJuice is a Bukkit plugin that implements the Minecraft Pi modding API on any standard Bukkit or Spigot server. It listens on a configurable TCP port (default 4711) and accepts the same commands that the Pi edition uses, following the protocol documented on wiki.vg under the Minecraft Pi Protocol. This means any script originally written for the Pi — or new ones you create — can connect to your full server and manipulate the world in real time. You get the stability and feature set of the Java Edition while keeping the accessible, educational scripting interface.

The plugin acts as a translator: your external program sends text-based commands over a network socket, and RaspberryJuice converts them into server-side actions. No client mods are required; players on the server can continue playing normally while your scripts run in the background, building, querying, or responding to events.

Core Commands and Extra Capabilities

The plugin supports the majority of the original Pi API functions. Here is a quick rundown of the implemented commands:

  • world.getBlock and world.getBlockWithData – read block types and metadata at a coordinate
  • world.setBlock and world.setBlocks – place single blocks or fill entire regions
  • world.getPlayerIds – fetch a list of online player entity IDs
  • chat.post – send messages to the in-game chat
  • events.clear and events.block.hits – manage event callbacks for block hit detection
  • player.getTile, player.setTile, player.getPos, player.setPos – track and teleport players
  • world.getHeight – get the terrain height at a given x,z coordinate
  • entity.getTile, entity.setTile, entity.getPos, entity.setPos – similar functions for any entity, not just players

Beyond the standard set, RaspberryJuice introduces several extra features that greatly expand what you can do. These include a bulk getBlocks command that retrieves multiple blocks in one call, and orientation functions like getDirection, getRotation, and getPitch to know exactly where players or entities are looking. You can also look up a player’s entity ID by name with getPlayerId, and even capture chat messages using pollChatPosts. To use these advanced functions, you will need the modified Java and Python libraries available on the RaspberryJuice GitHub repository inside the mcpi directory. The original Pi libraries still work perfectly for the basic commands, so you can start coding immediately without any extra downloads.

Configuration Made Simple

RaspberryJuice stores its settings in a standard config.yml file. The default TCP port 4711 can be changed if it conflicts with other services. One particularly useful option is location, which can be set to RELATIVE (like the Pi, coordinates relative to the world spawn) or ABSOLUTE. This lets you choose the coordinate system that best fits your project. Another setting, hitclick, determines whether block hit events are triggered by LEFT clicks, RIGHT clicks, or BOTH, giving you fine control over interactive scripts.

A Rainbow in Code: Practical Example

Nothing illustrates the power of RaspberryJuice better than a working script. The following Python snippet creates a vibrant rainbow arc near the world spawn. It uses the standard Pi API libraries and works right out of the box once your server is running with the plugin loaded. Place the script in the api/python directory of your Minecraft Pi prerelease tools, start the server on the same machine, and execute the file.

import mcpi.minecraft as minecraft
import mcpi.block as block
from math import *

colors = [14, 1, 4, 5, 3, 11, 10]
mc = minecraft.Minecraft.create()
height = 60

mc.setBlocks(-64,0,0,64,height + len(colors),0,0)
for x in range(0, 128):
    for colourindex in range(0, len(colors)):
        y = sin((x / 128.0) * pi) * height + colourindex
        mc.setBlock(x - 64, y, 0, block.WOOL.id, colors[len(colors) - 1 - colourindex])

When run, this script clears a large vertical space and then paints a sweeping, multicolored wool rainbow. The result is both a visual treat and a testament to how easily complex geometry translates into Minecraft blocks. Further examples, including interactive games and data visualizations, can be found on StuffAboutCode’s Minecraft section.

Getting Your Server Ready

Installing RaspberryJuice on a Bukkit server is as simple as dropping the plugin JAR into the plugins folder and restarting. If you are managing multiple mods and prefer a unified dashboard, the foxygame.net launcher provides a convenient, modern way to handle installations. With its built-in mod menu, you can download and activate plugins like RaspberryJuice directly, keeping your server setup clean and organized without manually shuffling files. Once active, any program that speaks the Pi protocol can connect and start shaping your world.

Why RaspberryJuice Matters for Minecraft Creators

RaspberryJuice transforms Minecraft into an interactive canvas for programmers of all skill levels. Educators can use it to teach Python in a familiar, engaging environment. Server owners can automate builds, create custom minigames, or link in-game events to external data. The plugin’s faithful recreation of the Pi API ensures that countless existing tutorials and scripts will run unchanged, while the extra features open doors to more sophisticated projects. By marrying the simplicity of the Pi edition with the full power of Java Minecraft, RaspberryJuice stands as a must-have tool for anyone who wants to code the world, not just play in it.