Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 909 Bytes


minecraft-pi allows you to control a Minecraft: Pi Edition server from Node.js. This is intended as a lower-level module, and is meant to be extended on for bigger projects. However, the commands are simple enough to play with as-is.


var Minecraft = require('minecraft-pi');
var client = new Minecraft('localhost', 4711, function() {
    // Use the client variable to play with the server!'Yo dawg, I heard you like Node.js, so I put some Node.js in your Pi so you can Node.js while you Pi.');
    client.setBlock(3, 14, 15, client.blocks['DIAMOND_BLOCK']);


[sudo] npm install -g docco
docco lib/minecraft.js
open docs/minecraft.html

You may also view pre-generated documentation here.

Jump to Line
Something went wrong with that request. Please try again.