An open API service indexing awesome lists of open source software.

https://github.com/remixz/minecraft-pi

A Node.js API for Minecraft: Pi Edition.
https://github.com/remixz/minecraft-pi

Last synced: about 2 months ago
JSON representation

A Node.js API for Minecraft: Pi Edition.

Awesome Lists containing this project

README

        

## ![minecraft-pi](https://raw.github.com/remixz/minecraft-pi/master/minecraft-pi.png)

minecraft-pi allows you to control a [Minecraft: Pi Edition](http://pi.minecraft.net/) 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.

### Usage

```js
var Minecraft = require('minecraft-pi');
var client = new Minecraft('localhost', 4711, function() {
// Use the client variable to play with the server!
client.chat('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']);
});
```

### Documentation

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

You may also view pre-generated documentation [here](http://zachbruggeman.me/minecraft-pi/).