PyMDFL 
A command-line application to generate data packs based on CRISPYrice's MDFL specification.
Installation
Install with pip: python -m pip install mdfl
If pip doesn't add the package to PATH correctly, you can start the program with python -m mdfl.
Usage
mdfl --help will output usage information:
PyMDFL: A command-line tool for parsing MDFL and generating Data Packs.
Usage:
mdfl <script> [--output=<path>]
mdfl <script> [--tree]
mdfl -h | --help
mdfl -V | --version
Options:
-h --help Show this screen.
-V --version Show version.
--output=<path> Output path for the datapack.
--tree Print a syntax tree without compiling.
The <script> argument specifies a file that conforms to the MDFL spec. For example, given a file gems.mdfl:
namespace diamonds {
// Namespace for obtaining diamonds.
fun get {
// Give the caller a diamond.
give @s minecraft:diamond;
}
}
namespace emeralds {
// Namespace for obtaining emeralds.
fun get {
// Give the caller an emerald.
give @s minecraft:emerald;
}
}
Run mdfl gems.mdfl and enter a description for your data pack.
$ mdfl gems.mdfl
Description of gems: All your gems are belong to @s
This will generate a zip file gems.zip with the following structure:
├── data
│ ├── emeralds
│ │ └── functions
│ │ └── get.mcfunction
│ └── diamonds
│ └── functions
│ └── get.mcfunction
└── pack.mcmeta
Metadata
Release files for mdfl 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mdfl-0.3.tar.gz | 5.5 kB | Without provenance | Details for mdfl-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mdfl-0.3-py3-none-any.whl | Python 3 | none | any | Details for mdfl-0.3-py3-none-any.whl |
Total release size: 12.7 kB
Release files / mdfl-0.3.tar.gz
| Download URL | mdfl-0.3.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67e6f5e9e067d7515d627a7a7fa2d1f0ca75a1f4382d23e74adc1140b053f2ea
|
|
BLAKE2b-256 checksum How to use checksums |
4b83964487d2fd91270f822221ae493629dee043b9c59591fd57ebda0d3eab5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.8.2 Linux/5.7.4-964.native
|
Release files / mdfl-0.3-py3-none-any.whl
| Download URL | mdfl-0.3-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21db1292c7988d213f0106ce46b8df1de989d013dcd87218ef5faf517c10751f
|
|
BLAKE2b-256 checksum How to use checksums |
ceec22b0e2c3085452213bdc5bdb308f74605800991cec2130a38a78d9db4ebf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.8.2 Linux/5.7.4-964.native
|
Security for mdfl 0.3
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.