Skip to main content

Minecraft: Bedrock Edition Websocket Server

Project description

bedrockpy

Minecraft: Bedrock Edition Websocket Server

bedrockpy lets you create a websocket server that is able to interact with a player in a Minecraft game. As the name suggests: this project only works with the "Minecraft: Bedrock Edition".

Documentation Status License PyPI PyPI - Downloads

Quick Links

"Show me some Code"

Code says more than a thousand words.

from bedrock.server import Server

app = Server()

@app.server_event
async def ready(ctx):
    print(f"Ready @ {ctx.host}:{ctx.port}!")

@app.game_event
async def block_broken(ctx):
    await ctx.server.run("title @a title Who destroyed {ctx.id}?!")

app.start("localhost", 6464)

Please refer to the "Introduction" section in the documentation in order to get started with bedrockpy.

Installation

You can install/upgrade bedrockpy with the following command:

pip install -U bedrockpy

If you are not using Windows, you may as well enable uvloop which speeds up the server:

pip install -U "bedrockpy[fast]"

NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.

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

bedrockpy-1.0.0a0.post1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

bedrockpy-1.0.0a0.post1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file bedrockpy-1.0.0a0.post1.tar.gz.

File metadata

  • Download URL: bedrockpy-1.0.0a0.post1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for bedrockpy-1.0.0a0.post1.tar.gz
Algorithm Hash digest
SHA256 3c487c9e0f108b6e85b63da55f1e5dbee3a5090701b7698a856debe50d22efcc
MD5 f5e62b499b9b1379500eeda707923824
BLAKE2b-256 78d8ac36ae748d4d1cb262817ba8c9c92c14485c6acba42657a9f9ce488ea721

See more details on using hashes here.

File details

Details for the file bedrockpy-1.0.0a0.post1-py3-none-any.whl.

File metadata

  • Download URL: bedrockpy-1.0.0a0.post1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.6 Linux/5.10.16.3-microsoft-standard-WSL2

File hashes

Hashes for bedrockpy-1.0.0a0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ef80515cd75955c75a3452a9af68fe2469b6de13d4fcd5d8e1e53654903e91e
MD5 4d9a5aa89a7402051dc2faac1a0e1f32
BLAKE2b-256 94a1ce47269502a47e92d88b5a588335565a6deaf09c30eb650e57981a96236c

See more details on using hashes here.

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