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.2.0.tar.gz
(15.7 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.2.0-py3-none-any.whl
(21.4 kB
view details)
File details
Details for the file chanty-0.2.0.tar.gz.
File metadata
- Download URL: chanty-0.2.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceda73699b951549d504ec93bd794a816255a93e3b4016f622464d518514bea4
|
|
| MD5 |
b4b59476670e77a74c795508c95f4d75
|
|
| BLAKE2b-256 |
9f08fcbb2616d5ba8482f88d2f72ec43fd3f10d6e94defb776b4bffb386bd750
|
File details
Details for the file chanty-0.2.0-py3-none-any.whl.
File metadata
- Download URL: chanty-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.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 |
fdd6c02bdea8388625c791a10c43685fdb9e0f3fa29352ed66b92991af9e7208
|
|
| MD5 |
5d5eecf6d9987f8aedc37eccb19095ea
|
|
| BLAKE2b-256 |
f1aabc24c950949eada462918b87cce0266aa1170fe2ebb829ffc9a01622fe29
|