1.0.6 • Published 3 years ago

nodemc_alts v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

nodemc_alts

npm

Install

$ npm install nodemc_alts

Usage

Node Minecraft Protocol

NOTICE : you can still create a node mc protocol object using new nodealt();, but due to the addition of mineflayer support, it is advised that you use new nodealt.nodeprotocol();

Easymc

var mc = require('minecraft-protocol');
const nodealt = require('nodemc_alts');
const alt = new nodealt.nodeprotocol();

var client = alt.easymc(TOKENHERE /* required */,SERVERIP HERE /* required */,PORT /* optional */);

client.on('connect', function() {
  console.log("connected pog");
});
//...

TheAltening

var mc = require('minecraft-protocol');
const nodealt = require('nodemc_alts');
const alt = new nodealt.nodeprotocol();

var client = alt.altening(TOKENHERE /* required */,SERVERIP HERE /* required */,PORT /* optional */);

client.on('connect', function() {
  console.log("connected pog");
});
//...

FastAlts

var mc = require('minecraft-protocol');
const nodealt = require('nodemc_alts');
const alt = new nodealt.nodeprotocol();

var client = alt.fastalts(TOKENHERE /* required */,SERVERIP HERE /* required */,PORT /* optional */);

client.on('connect', function() {
  console.log("connected pog");
});
//...

Mineflayer

Easymc

var flayer = require('mineflayer');
const nodealt = require('nodemc_alts');
const alt = new nodealt.mineflayer();

var client = alt.easymc(TOKENHERE /* required */,SERVERIP HERE /* required */,PORT /* optional */);

client.on('connect', function() {
  console.log("connected pog");
});
//...

TheAltening

var flayer = require('mineflayer');
const nodealt = require('nodemc_alts');
const alt = new nodealt.mineflayer();

var client = alt.altening(TOKENHERE /* required */,SERVERIP HERE /* required */,PORT /* optional */);

client.on('connect', function() {
  console.log("connected pog");
});
//...

FastAlts

var flayer = require('mineflayer');
const nodealt = require('nodemc_alts');
const alt = new nodealt.mineflayer();

var client = alt.fastalts(TOKENHERE /* required */,SERVERIP HERE /* required */,PORT /* optional */);

client.on('connect', function() {
  console.log("connected pog");
});
//...