Tool for creating cool Minecraft datapacks
Project description
Chanty
Write Minecraft datapacks easely with Python
chanty is a Python DSL for writing Minecraft datapacks as if they were real code.
No more messy .mcfunction files - just cliean, structured logic.
Install
pip install chanty
Usage
from chanty import Datapack, Namespace, CommandBuilder
pack = DataPack('my_awesome_datapack')
namespace = Namespace('main')
@namespace.on_load
def handle_on_load() -> str:
with CommandBuilder() as cmd:
cmd.tellraw('Hello world from chanty datapack!')
return cmd.build()
# Export into folder
pack.export('./my_datapack')
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
chanty-0.1.1.tar.gz
(11.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
chanty-0.1.1-py3-none-any.whl
(15.4 kB
view details)
File details
Details for the file chanty-0.1.1.tar.gz.
File metadata
- Download URL: chanty-0.1.1.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1781b35fa43e1c075d79ccb3e28a8fdc8a96f60d912a1b1eb6ccbd7d261ca2c7
|
|
| MD5 |
53b6cfd504f4bd2e5cec56cbd83c263b
|
|
| BLAKE2b-256 |
45f1f0716a225440871d27b64808d3b7f2008820315ce3d2eaf19b5f6354ae18
|
File details
Details for the file chanty-0.1.1-py3-none-any.whl.
File metadata
- Download URL: chanty-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c167f244ac9062fbb0e4323eaf5b85bc37ce85a8bad9e9329ba85502660b74a5
|
|
| MD5 |
adcc85855a9bf9d6dbbbf0ceb640eb5a
|
|
| BLAKE2b-256 |
d17ab48289a7b729dfbc7c4e8a6551c41926001904487625f735d8b6034c0875
|