Skip to main content

MLang - Minecraft scripting language with WebSocket bridge

Project description

MLang — Minecraft Scripting Language

Custom programming language for controlling Minecraft. Write .GLang scripts, run them with a Python interpreter connected via WebSocket to the MLang Fabric mod bridge.

Install

pip install mlang

Or from source:

git clone https://github.com/Gamer542-arch/MLang
cd mlang/mlang
pip install -e .

Quick Start

1. Run a script

python -m mlang script.glang

2. Interactive REPL

python -m mlang

3. Connect to Minecraft

import asyncio
from mlang.bridge import BridgeClient

async def main():
    bridge = BridgeClient()
    await bridge.connect()
    await bridge.player_teleport(0, 64, 0)
    await bridge.chat_send("&aHello from Python!")
    await bridge.disconnect()

asyncio.run(main())

Features

  • GLanguage — C#-like scripting language with full interpreter (lexer, parser, AST, tree-walk)
  • MC Bridge — WebSocket JSON-RPC client for the MLang Fabric mod
  • GUI System — 17 widget types, 7 themes (dark, neon, glass, future...), animations
  • CLI + REPL — Run scripts or interactive development

Requirements

  • Python 3.10+
  • Minecraft 1.21.8 with Fabric Loader and MLang Bridge mod

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

mlang_py-1.1.0.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlang_py-1.1.0-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

Details for the file mlang_py-1.1.0.tar.gz.

File metadata

  • Download URL: mlang_py-1.1.0.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mlang_py-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a79379409ecfc171ec02c8afc25bc66106f590e1592d0c79ad19a4d1ff76df89
MD5 740ffaab94cab9cfc399055ab541447c
BLAKE2b-256 7f45e213c54b182ba275ec783fed26abd20efb2510add51a682e60bd24e98e62

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlang_py-1.1.0.tar.gz:

Publisher: publish.yml on Gamer542-arch/Mlang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mlang_py-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: mlang_py-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 43.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mlang_py-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 313dc30c9bab175aa195d0e94d4d52bc4a1a4908d4a2b02e8acb46114c37a349
MD5 7432adb2b92010f0a7e21e3bf9e8f3ee
BLAKE2b-256 019ff417da48f57d25d2f02840c926203aef7634dc7f9433b1c435a96525a579

See more details on using hashes here.

Provenance

The following attestation bundles were made for mlang_py-1.1.0-py3-none-any.whl:

Publisher: publish.yml on Gamer542-arch/Mlang

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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