You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To create a function or process, start the template with function or process:
# Function that gives a player 64 golden applesfromdfpyreimport*Function('giveApples', codeblocks=[
PlayerAction.GiveItems(Item('golden_apple', 64))
])
Calling Functions and Processes
To call a function or process, use the call_function or start_process functions with the name of the function or process: