Template Variables

September 29, 2025 ยท View on GitHub

VariableDescription
filenameReturns the name + extension of the creating file
filepathReturns the full path of the creating file
folderReturns the folder of the creating file
idReturns the id of the creating entity/block/item/etc
id.safeReturns the a safe id of the creating entity/block/item/etc
id.safe.nonamespaceReturns the a safe id without a namespace of the creating entity/block/item/etc
pack.type.shortReturns the pack folder path, values: bp, rp, sp, wp or unknown
pack.typeReturns the type of the pack, values: behavior, resource, skin, world or unknown
packReturns the pack folder path
project.attributesReturns the specified attribute of the stored MCProject information:
Example: ${{project.attributes:author}}
template.idReturns the id of the template used to create the file,
example: behavior.entity
uuidReturns a random uuid