/bdsx

Minecraft, BDS + node.js

Primary LanguageC++

BDSX: Minecraft Bedrock Dedicated Server + node.js!

logo
It's Minecraft Bedrock Dedicated Server with node.js supports.

import { chat } from 'bdsx';
chat.on(ev=>{
    ev.setMessage(ev.message.toUpperCase()+" YEY!");
});
  • Hijack network packet + Get IP Address & XUID!
import { netevent, PacketId } from "bdsx";
netevent.after(PacketId.Login).on((ptr, networkIdentifier, packetId)=>{
    const ip = networkIdentifier.getAddress();
    const [xuid, username] = netevent.readLoginPacket(ptr);
    console.log(`${username}> IP=${ip}, XUID=${xuid}`);
});

It's very mutable now, I will remove or change API names frequently!

How to use it?

by executable

by npm module

  • Requirement
    node.js
    Wine(for Linux)
# Install BDSX
npm i bdsx -g # If you use linux, maybe it needs sudo 
# Run BDSX
bdsx example ./example # make example project to './example'
bdsx ./example # run BDSX with './example', it will read 'main' of 'path/package.json

Build Typescript (Watch Mode)

  • Build with VSCode
  1. Open bdsx/ with VSCode
  2. Ctrl + Shift + B
  3. Select tsc: watch
  • Build with Command Line
  1. Open bdsx/ with Prompt
  2. run npm watch

JS API Reference

https://github.com/karikera/bdsx/wiki

Bug Report or Q&A

https://github.com/karikera/bdsx/issues

Discord for Q&A

https://discord.gg/pC9XdkC

Build It Self

  1. Clone BDSX and ken.(personal library project)
    [parent directory]
    ├ ken (https://github.com/karikera/ken)
    └ bdsx (https://github.com/karikera/bdsx)

  2. Update git submodules.

  3. Build bdsx.sln with Visual Studio 2019.

  4. Build bdsx/bdsx-node with Visual Studio Code. And select tsc watch.

  5. Build bdsx/bdsx-node with Visual Studio Code. And select Package.
    It will generate a zip file to bdsx/release-zip/bdsx-[version].zip