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.13.0

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.13.0
File Size Uploaded Provenance Actions
flaremc-0.13.0.tar.gz 228.7 kB Without provenance Details for flaremc-0.13.0.tar.gz

Built distribution (wheel)

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

Total release size: 505.2 kB

Release files / flaremc-0.13.0.tar.gz

Download URL flaremc-0.13.0.tar.gz
Size 228.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0958580ea0f836d6c580fda782cb486e1c67d63e6eab78e31a1578a534b42ba9
BLAKE2b-256 checksum
How to use checksums
486fdf4082ce4511551f69a1fb25335abef1613034fe7d57be4d7e8373b7e2b4
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.13.0-py3-none-any.whl

Download URL flaremc-0.13.0-py3-none-any.whl
Size 276.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a77e24b99e7124023b6cecf89bd92cf898fc4de022fa8eede6ee12e0f16b50a8
BLAKE2b-256 checksum
How to use checksums
73262ddc7ba67360163f8170fac466d03364aaf2d95085e4604658947e47a35b
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.13.0

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.13.0 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