Skip to content

Functions

molang

Decorator function which converts this function to Molang.

Parameters

NameTypeDescription
funcCallable

Example

Python
from molang import molang

@molang
def convert_to_molang(n):
    return n * 2
print(convert_to_molang)
# return t.n*2;

run

Parameters

NameTypeDescription
fnstr
textstr

run_file

Parameters

NameTypeDescription
fpstr

Not associated with or approved by Mojang Studios or Microsoft