@nxg-org/mineflayer-mitm-proxy
TypeScript icon, indicating that this package has built-in type declarations

0.5.7 • Public • Published

mineflayer-mitm-proxy

Basic Usage

const { ServerBuilder } = require('@nxg-org/mineflayer-mitm-proxy');

// load your plugin implementation
const { GotoPlacePlugin } = require('./plugins/basicGoto'); 


// use the bot's normal settings here.
const botOpts = {
  username: "generelSchwerz",
  auth: "microsoft",
  host: "localhost",
  version: "1.12.2",
};

// configure the local server options here.
const serverOpts = {
  version: "1.12.2",
  port: 25566,
};

// use a ServerBuilder to strongly build a server!
const server = new ServerBuilder(serverOpts, botOpts)
  .addPlugin(new GotoPlacePlugin())
  .setSettings({})
  .build();


// start the server whenever.
server.start();

I will include full documentation at a later date.

Readme

Keywords

none

Package Sidebar

Install

npm i @nxg-org/mineflayer-mitm-proxy

Weekly Downloads

1

Version

0.5.7

License

MIT

Unpacked Size

131 kB

Total Files

26

Last publish

Collaborators

  • generel_schwerz
  • rob9315