A Node.js API for Minecraft: Pi Edition.
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 = 'localhost' 4711// Use the client variable to play with the server!clientchat'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.';clientsetBlock3 14 15 clientblocks'DIAMOND_BLOCK';;
[sudo] npm install -g doccodocco lib/minecraft.jsopen docs/minecraft.html
You may also view pre-generated documentation here.