pyre
A tool for creating and modifying code templates for the DiamondFire Minecraft server.
PyPi Link: https://pypi.org/project/dfpyre/
Features
- All codeblock types and actions
- All code items
- Direct sending to DF via CodeClient
- Fully documented and typed actions
- Automatic type conversion (
inttoNumber,strtoString) - Shorthand format for variables
- Convert existing templates into equivalent Python code
Quick Start
To get started with pyre, install the module with pip:
pip install dfpyre
I also highly recommend you install CodeClient and enable CodeClient API in its General config tab. This will allow you to quickly send your templates to DiamondFire. You can download it here on Modrinth.
Basic Template Example:
from dfpyre import *
PlayerEvent.Join(codeblocks=[
PlayerAction.SendMessage(Text('%default has joined!'), target=Target.ALL_PLAYERS),
PlayerAction.GiveItems([Item('diamond_sword'), Item('steak', 10)])
]).build_and_send()
For more information and examples, check out the Wiki on Github.
Metadata
Release files for dfpyre 0.11.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dfpyre-0.11.7.tar.gz | 563.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dfpyre-0.11.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.1 MB
Release files / dfpyre-0.11.7.tar.gz
| Download URL | dfpyre-0.11.7.tar.gz |
|---|---|
| Size | 563.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ef5335c100b89a8aa2646fee01d59936dd1d14b487b0f804de089770f29745a1
|
|
BLAKE2b-256 checksum How to use checksums |
42abd0b8b2d544d9b462c5f9bfe7a4ae5f24c3c0944678f53be146e1e9337ea5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / dfpyre-0.11.7-py3-none-any.whl
| Download URL | dfpyre-0.11.7-py3-none-any.whl |
|---|---|
| Size | 579.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
113a6df4071ab1357ccca413c6bcd75b4727a3ff725c499310328b2ad50b62b8
|
|
BLAKE2b-256 checksum How to use checksums |
45f72aa864e1b0760ce06d8940d18d3684f390a16b51ac3f6257ffb78559fa53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|