开源软件名称(OpenSource Name):remixz/minecraft-pi开源软件地址(OpenSource Url):https://github.com/remixz/minecraft-pi开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):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. Usagevar 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[sudo] npm install -g docco
docco lib/minecraft.js
open docs/minecraft.html You may also view pre-generated documentation here. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论