Visual Minecraft Hacking on Raspberry Pi – How it works?

 

Minecraft Pi Edition has been especially built with an API (application programming interface ) to allow programs to ask questions about the state of the game and world and change bits of it. Mojang have done this to encourage young programmers and so it is cost free.

There is a javascript library for NodeJS (software that execute javascript directly on a computer rather than through a browser) that can use this APIĀ  .

We have written a webserver using NodeJS which serves the Waterbear web page from the Raspberry Pi and receives and runs the finished scripts that are produced in the Waterbear MinecraftJS plugin (which we also write).