Skip to main content

Minecraft Bedrock Websocket

Project description

MinecraftWS

PyPI

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page