Skip to content

Node.js API with Promises for Minecraft Raspberry Pi edition

License

Notifications You must be signed in to change notification settings

choas/minecraft-pi-promise

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minecraft-pi-promise

minecraft-pi-promise allows you to control Minecraft: Raspberry 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.

Usage

var Minecraft = require('minecraft-pi-promise');
new Minecraft('192.168.2.110', 4711)
.then(function(mc) {
        // Use the mc variable to play with the server!
        mc.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.');
        mc.setBlock(3, 14, 15, mc.blocks['DIAMOND_BLOCK']);
        mc.end();
});

Documentation

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

You may also view pre-generated documentation here.

About

Node.js API with Promises for Minecraft Raspberry Pi edition

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%