Minecraft Bedrock Websocket
Project description
MinecraftWS
Minecraft Bedrock Websocket
Install
pip install MinecraftWS
Example
from MinecraftWS import MinecraftWebSocket, Event
class MWS(MinecraftWebSocket):
async def on_connect(self):
print('connect')
await self.add_event(Event.BlockBroken)
async def on_disconnect(self):
print('disconnect')
async def on_event(self, event: str, properties: dict):
if event == Event.BlockBroken:
print('block is broken')
MWS().run()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MinecraftWS-1.1.1.tar.gz
(3.9 kB
view hashes)