Skip to main content
Flare Logo

Flare 🔥

Programmatic Minecraft Datapacks in Python

Write Minecraft logic using full Python power: scores, NBT, execute chains, recursion, and more. Compile to optimized datapacks instantly.


Read the full documentation at: flare.oguzhanumutlu.com


What is Flare?

Flare is a modern framework for building Minecraft datapacks natively in Python. It bridges the gap between Python's high-level elegance and Minecraft's native mcfunction performance. You can use standard Python syntax, variables, and math, and Flare automatically translates and compiles your logic into highly-optimized, scoreboard-driven datapacks.

Installation

pip install flaremc

Quick Start: Advanced Math & NBT

With Flare, writing advanced datapack logic is incredibly clean. Below is a quick example of defining variables, doing advanced floating-point math natively in Minecraft, running terminal commands, and interacting with NBT.

from flare import namespace, score, math, nbt, expand

# Define your datapack namespace
namespace("my_pack")

# Declare a scoreboard variable and initialize it to 10
x = score(10)

# Compute math dynamically using native scoreboard approximations (Taylor series, CORDIC, etc.)
# All complex math compiles to highly optimized raw scoreboard operations!
result = math.sin(x) * math.sqrt(x)

# Print the dynamic float result back to the game seamlessly
print(f"The result is: {result}")

# Interact seamlessly with Minecraft's NBT environment
player_data = @a.Data[dict]

# Flare smartly manages conditional blocks and inlines commands when appropriate
if expand(x > 5):
    say "X is greater than 5!"
    kill @e[type=zombie, distance=..10]

Compile & Run

To compile your datapack to a .mcfunction structure, simply run:

flare main.py

To compile and immediately run it using the built-in emulator:

flare main.py --run

Documentation

Ready to unleash the full power of Python in Minecraft?

Check out the interactive playground and full documentation at flare.oguzhanumutlu.com!


Acknowledgements

Metadata

Release files for flaremc 0.12.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaremc 0.12.9
File Size Uploaded Provenance Actions
flaremc-0.12.9.tar.gz 223.6 kB Without provenance Details for flaremc-0.12.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flaremc 0.12.9
File Interpreter ABI Platform Actions
flaremc-0.12.9-py3-none-any.whl Python 3 none any Details for flaremc-0.12.9-py3-none-any.whl

Total release size: 497.8 kB

Release files / flaremc-0.12.9.tar.gz

Download URL flaremc-0.12.9.tar.gz
Size 223.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60b757e3162e221dae84f0122050c7edd57419685e4a2ad3f4bac62daa56efd5
BLAKE2b-256 checksum
How to use checksums
4860a7f31da0d094768ef89010a4645323c3c77c7d87fe6a5f957f4fb4dfd287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / flaremc-0.12.9-py3-none-any.whl

Download URL flaremc-0.12.9-py3-none-any.whl
Size 274.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b08e3229493ed47fbd7554ade13625956d3f1fa9469efeb331767e1709ca5056
BLAKE2b-256 checksum
How to use checksums
9f4484e0557fa06d04dd1e48d1f734777ffc9e9b624abcd9b0afd4bf36fd0605
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for flaremc 0.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.12.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page