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 details)

Uploaded Source

File details

Details for the file MinecraftWS-1.1.1.tar.gz.

File metadata

  • Download URL: MinecraftWS-1.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for MinecraftWS-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b33b7ed0a102f9fe9b9bccc0a601c5dd76786ab2a6663ae5ef0fea3a23dfe93b
MD5 803780d22b29c9474a2d39eff70a0fd3
BLAKE2b-256 07826418bdd64ea9acde08d0c0ea56c6e802f587e37cd8361c2a77c127cce8e2

See more details on using hashes here.

Supported by

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