It's Minecraft Bedrock Dedicated Server with node.js supports.
- OS: Windows & Linux(with Wine)
- Basic Minecraft features as usual.
- node.js features (?)
- Debug with Visual Studio Code (You can debug addons too)
- Hijack network packet + Get IP Address & XUID
import { nethook, MinecraftPacketIds } from "bdsx";
nethook.after(MinecraftPacketIds.Login).on((ptr, networkIdentifier, packetId)=>{
const ip = networkIdentifier.getAddress();
const cert = ptr.connreq.cert;
const xuid = cert.getXuid();
const username = cert.getId();
console.log(`${username}> IP=${ip}, XUID=${xuid}`);
});
- Requirement
node.js
Wine(for Linux)
git clone https://github.com/bdsx/bdsx.git or download it - Recommended
VSCode
GIT
1. Open the project with VSCode
2. Open a terminal(Ctrl+Shift+`)
3. run `npm i` # install npm packages and BDS
4. Press `F5` # build & run
run ./bdsx.bat
(on Windows)
run ./bdsx.sh
(on Linux)
docker run -ti karikera/bdsx
[bdsx project]
├ [bdsx] # Core Library
├ [example_and_test]
├ [bedrock_server] # Installed BDS
├ launcher.ts # Script before launching BDS.
├ index.ts # Main entry point.
├ bdsx.sh # Executable for Linux
└ bdsx.bat # Executable for Windows
# ./launcher.ts imports ./index.ts after launching BDS
# Please start your own code from ./index.ts
https://github.com/bdsx/bdsx/discussions
https://github.com/bdsx/bdsx/wiki