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".
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
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
Built Distribution
File details
Details for the file bedrockpy-1.0.0a0.tar.gz
.
File metadata
- Download URL: bedrockpy-1.0.0a0.tar.gz
- Upload date:
- Size: 16.2 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2397a42735a7549b7b1cbb2b1e822e050d76e80015488f4a00d32e199e62aadb |
|
MD5 | 27a48b0a380dc587e621376c1b329429 |
|
BLAKE2b-256 | e3786e171e2f0a2bb15ed3dfb756013d7afeb6901f1a5c92203e36176796b504 |
File details
Details for the file bedrockpy-1.0.0a0-py3-none-any.whl
.
File metadata
- Download URL: bedrockpy-1.0.0a0-py3-none-any.whl
- Upload date:
- Size: 15.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2725bd322f97c89a5496b5c0e87901fae07f1db3185780bf041aed5d3cee5c5b |
|
MD5 | 3207ec6245bd6a66d4c96bc97e2706e4 |
|
BLAKE2b-256 | 0ffe347c71905c5804701529edf709bf2509e95536ecb202c5603187eb95fac3 |