Skip to content

Molang

extends str

Methods

from_ast

Converts a Python abstract syntax tree to Molang

Parameters

NameTypeDescription
ast_nodeast.ModuleThe ast node to parse

append

Add text to the end of the expression

Parameters

NameTypeDescription
sstrThe text to append

prepend

Add text to the start of the expression

Parameters

NameTypeDescription
sstrThe text to prepend

Not associated with or approved by Mojang Studios or Microsoft