Skip to main content

A tool to convert python scripts to DF code templates.

Project description

Py2DF

==========

An easy to use and feature-rich tool to convert written, easier to understand python code to a DiamondFire template.

Installing

Python 3.6 or higher is required

To install the library you can just run the following command:SOON TM

# Linux/macOS
python3 -m pip install -U Hypercode.py

# Windows
py -3 -m pip install -U Hypercode.py

Quick Example

@PlayerEvent.Join
def on_join():
    p_default.send_message("Test")
    p_default.give_items(Item(material=Material.DIAMOND_SWORD, name="My Sword", lore=["My custom sword"]))
    p_default.teleport(Location(50, 50, 50))

You can find more examples in the examples directory.

Links

  • Documentation <https://py2df.readthedocs.io/en/latest/index.html>_
  • Official Discord Server <https://discord.gg/eUVVRyE>_

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

DFHypercode-0.0.1.tar.gz (162.7 kB view hashes)

Uploaded Source

Built Distribution

DFHypercode-0.0.1-py3-none-any.whl (355.9 kB view hashes)

Uploaded Python 3

Supported by

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