Skip to content
/ Py2DF Public

A tool that converts simple python to DF templates to be used ingame.

License

Notifications You must be signed in to change notification settings

PgBiel/Py2DF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: THIS ISN'T LIVE YET BUT WILL BE SOON TM

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

# Windows
py -3 -m pip install -U Py2DF.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>_

About

A tool that converts simple python to DF templates to be used ingame.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages