w-gao / WebPE.Js

Minecraft: Bedrock Edition network protocol in Javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebPE.Js

What is this?

This is an implementation of the Minecraft: Bedrock Edition network protocol in Javascript. This package is intended to work on browsers with WebSocket communications built in.

Keep in mind, this can not directly connect to any Minecraft: Bedrock Edition servers because browsers do not support UDP (RakNet to be specific) connections.

What is this for?


This is the network layer of the WebPE project, where it aims to connect to Minecraft Bedrock Edition servers through a proxy or a server side plugin.

Screenshots


ss1

ss2

Development


TODOs
  • Event dispatcher
  • Sub-chunk version 8 support
  • Add/remove players
  • Move players
  • Decode FullChunkDataPacket
  • NBT library
  • Handshake sequence; ping server etc
  • Use workers for websocket and chunk loading
Dependencies
Package Description/Usage
buffer Packet serialization & deserialization
events Event system
long long datatype support
node-jose base64 encode for login packet; (not used for encryption support yet)
pako zlib library
uuid-parse UUID

About

Minecraft: Bedrock Edition network protocol in Javascript


Languages

Language:TypeScript 98.3%Language:JavaScript 1.4%Language:HTML 0.3%