Skip to main content

A package for creating and modifying code templates for the DiamondFire Minecraft server.

Project description

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 (int to Number, str to String)
  • 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.

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

dfpyre-0.10.1.tar.gz (427.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dfpyre-0.10.1-py3-none-any.whl (440.1 kB view details)

Uploaded Python 3

File details

Details for the file dfpyre-0.10.1.tar.gz.

File metadata

  • Download URL: dfpyre-0.10.1.tar.gz
  • Upload date:
  • Size: 427.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for dfpyre-0.10.1.tar.gz
Algorithm Hash digest
SHA256 8a1f17f34cbe72fcf25f9691918cf1e1ec0f7ed942bf3dfc05255fbef5433a29
MD5 43412b744ce4a22b60c7f6d4b4d4d83c
BLAKE2b-256 29065d0fdd6ee498a7eccd216ae4b557a98755ddc1aae8aaa81719918dec4779

See more details on using hashes here.

File details

Details for the file dfpyre-0.10.1-py3-none-any.whl.

File metadata

  • Download URL: dfpyre-0.10.1-py3-none-any.whl
  • Upload date:
  • Size: 440.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for dfpyre-0.10.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca8e08079f1a47ab0de8167a9133c539f2c890f83e847b097d392f83e452ca09
MD5 c232a26b9ca92e6eb93621c5dc312ecd
BLAKE2b-256 abe1056a7f883144f51992bc86a1dc423a0a9115fc20d934d4b16c806b9abdfb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page