Skip to main content

Minecraft Bedrock Edition Websocket Server

Project description

bedrockpy is a library that handles a websocket connection between your Minecraft world and your server. This library allows you to create custom commands and react to several events.

Important

This library is not meant for creating add-ons, plugins or similar things. If you are however looking for creating such creations, you might take a look at Microsofts official Minecraft Bedrock documentation

This library is meant to combine python knowledge with Minecraft or execute Python code on systems that do not provide full add-on support (such as Bedrock Edition on Consoles).

A very small example

This demonstrates the basic structure of a bot Don’t worry, there is way more to create!

import bedrock

app = bedrock.Server(
    "localhost", 6464,
    command_prefix = "$"
)

@app.event
async def on_ready(ctx):
    print("Ready!")

@app.command()
async def hello(ctx):
    """say hello"""
    ctx.tell("Hello, World!")

app.run()

Documentation

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-0.1.1.post1.tar.gz (13.9 kB view hashes)

Uploaded Source

Built Distribution

bedrockpy-0.1.1.post1-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

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