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(f"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.

Requirements

  • Python 3.10 or greater
  • pip (usually comes with Python)
  • Minecraft (not Java Edition) (any version)[^1]

[^1]: This only applies to the client connecting to the server.

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.0.tar.gz (16.2 kB view details)

Uploaded Source

Built Distribution

bedrockpy-1.0.0-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bedrockpy-1.0.0.tar.gz
  • Upload date:
  • Size: 16.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.9.4-arch1-1

File hashes

Hashes for bedrockpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6e602f0d9720b101ab8f93380ff9d67a2dd1db810feb2179fb296966bc478b9e
MD5 bddaff0dc71999c1fe77a8a3f28807cb
BLAKE2b-256 b76615d3a358f03d421431f70051880645280c661ed22869e17572db78e81c92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bedrockpy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.9.4-arch1-1

File hashes

Hashes for bedrockpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5b752ea76566964d57c063c6e4757c4766ba51b7c89ee9f09754e286d3ab37b
MD5 6ff4396149985c9f44cd5d98141e389c
BLAKE2b-256 0c0a8f3e05d85c5ba7cdf1ca368654a850eae2678da2ebb7f3175193c80c0637

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