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.
- Host: GitHub
- URL: https://github.com/remixz/minecraft-pi
- Owner: remixz
- License: mit
- Created: 2013-02-16T23:55:14.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-27T03:40:17.000Z (over 12 years ago)
- Last Synced: 2025-04-13T01:13:01.668Z (about 2 months ago)
- Language: JavaScript
- Homepage: http://zachbruggeman.me/minecraft-pi/
- Size: 271 KB
- Stars: 33
- Watchers: 8
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## 
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/).